Fixed the FIXME; more specific exception catching

This commit is contained in:
jorenham 2017-03-08 20:44:39 +01:00
parent cfb56400b2
commit 3cd9185aa1
1 changed files with 1 additions and 1 deletions

View File

@ -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: