fix logic

This commit is contained in:
Mike McLean 2021-02-15 22:10:00 -05:00 committed by Tomas Kopecek
parent 08139a9e39
commit 144dc70010

View file

@ -454,7 +454,9 @@ def rmtree(path, logger=None):
try:
os.chdir(path)
except OSError as e:
if e.errno not in (errno.ENOENT, errno.ESTALE):
if e.errno in (errno.ENOENT, errno.ESTALE):
# likely racing with another rmtree
# if the dir doesn't exist, we're done
return
raise
try: