WindowsError is undefined on POSIX
This commit is contained in:
parent
12233d704b
commit
518ec36511
1 changed files with 1 additions and 3 deletions
|
@ -133,10 +133,8 @@ def make_zip(zip_file_path, files, dirs):
|
|||
def rm_rf(path):
|
||||
try:
|
||||
shutil.rmtree(path)
|
||||
except WindowsError: # pylint: disable=E0602
|
||||
pass
|
||||
except OSError as e:
|
||||
if e.errno != errno.ENOENT:
|
||||
if e.errno != errno.ENOENT and e.errno != errno.EIO:
|
||||
raise
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue