Merge "catch no such file in hash_suffix"
This commit is contained in:
commit
a0d96b184d
@ -83,7 +83,7 @@ def hash_suffix(path, reclaim_age):
|
||||
try:
|
||||
path_contents = sorted(os.listdir(path))
|
||||
except OSError, err:
|
||||
if err.errno == errno.ENOTDIR:
|
||||
if err.errno in (errno.ENOTDIR, errno.ENOENT):
|
||||
raise PathNotDir()
|
||||
raise
|
||||
for hsh in path_contents:
|
||||
|
Loading…
Reference in New Issue
Block a user