Work around this bug: https://github.com/python/cpython/pull/14064 #941

Merged
telackey merged 1 commits from telackey/rmtree into main 2024-08-28 23:17:14 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -668,4 +668,4 @@ def command( # noqa: C901
main_logger.log("UNCAUGHT ERROR:" + str(e)) main_logger.log("UNCAUGHT ERROR:" + str(e))
raise e raise e
finally: finally:
shutil.rmtree(tempdir) shutil.rmtree(tempdir, ignore_errors=True)

View File

@ -172,4 +172,4 @@ def command(
# Send the request # Send the request
laconic.publish(deployment_request) laconic.publish(deployment_request)
finally: finally:
shutil.rmtree(tempdir) shutil.rmtree(tempdir, ignore_errors=True)