Skip to content

Commit c19c626

Browse files
committed
Avoid spurious failures
1 parent 883be05 commit c19c626

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/tools/ArchivePythonStdlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def make_archive(file, directory):
148148

149149
print(f"-- YUP -- Cleaning up {final_location}...")
150150
if final_location.exists():
151-
shutil.rmtree(final_location)
151+
shutil.rmtree(final_location, ignore_errors=True)
152152

153153
final_location.mkdir(parents=True, exist_ok=True)
154154

@@ -260,4 +260,4 @@ def make_archive(file, directory):
260260

261261
# Clean up temporary directory
262262
print(f"-- YUP -- Cleaning up {final_location}...")
263-
shutil.rmtree(final_location)
263+
shutil.rmtree(final_location, ignore_errors=True)

0 commit comments

Comments
 (0)