Merge "Catch NotADirectoryError error"
This commit is contained in:
commit
cff1cb4334
@ -56,7 +56,7 @@ def _get_mtime(name):
|
||||
s = os.stat(name)
|
||||
return s.st_mtime
|
||||
except OSError as err:
|
||||
if err.errno != errno.ENOENT:
|
||||
if err.errno not in {errno.ENOENT, errno.ENOTDIR}:
|
||||
raise
|
||||
return -1.0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user