Merge "catch no such file in hash_suffix"

This commit is contained in:
Jenkins 2012-10-02 18:49:02 +00:00 committed by Gerrit Code Review
commit a0d96b184d

View File

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