mirror of https://github.com/scrapy/scrapy.git
Fixed the FIXME; more specific exception catching
This commit is contained in:
parent
cfb56400b2
commit
3cd9185aa1
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue