fix logic
This commit is contained in:
parent
08139a9e39
commit
144dc70010
1 changed files with 3 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue