From 3cd9185aa12430708b17eb8c02a6bdc3709ed5f9 Mon Sep 17 00:00:00 2001 From: jorenham Date: Wed, 8 Mar 2017 20:44:39 +0100 Subject: [PATCH] Fixed the FIXME; more specific exception catching --- scrapy/pipelines/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/pipelines/files.py b/scrapy/pipelines/files.py index 843b4d3ec..bdc0f24e5 100644 --- a/scrapy/pipelines/files.py +++ b/scrapy/pipelines/files.py @@ -58,7 +58,7 @@ class FSFilesStore(object): absolute_path = self._get_filesystem_path(path) try: last_modified = os.path.getmtime(absolute_path) - except: # FIXME: catching everything! + except os.error: return {} with open(absolute_path, 'rb') as f: