From e4138211fe04fce8b2a9d20da6cdd0df19f60e5a Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Wed, 28 Aug 2024 18:10:52 -0500 Subject: [PATCH] Work around this bug: https://github.com/python/cpython/pull/14064 --- stack_orchestrator/deploy/webapp/deploy_webapp_from_registry.py | 2 +- stack_orchestrator/deploy/webapp/request_webapp_deployment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stack_orchestrator/deploy/webapp/deploy_webapp_from_registry.py b/stack_orchestrator/deploy/webapp/deploy_webapp_from_registry.py index 5da1f4eb..aa3a4d8f 100644 --- a/stack_orchestrator/deploy/webapp/deploy_webapp_from_registry.py +++ b/stack_orchestrator/deploy/webapp/deploy_webapp_from_registry.py @@ -668,4 +668,4 @@ def command( # noqa: C901 main_logger.log("UNCAUGHT ERROR:" + str(e)) raise e finally: - shutil.rmtree(tempdir) + shutil.rmtree(tempdir, ignore_errors=True) diff --git a/stack_orchestrator/deploy/webapp/request_webapp_deployment.py b/stack_orchestrator/deploy/webapp/request_webapp_deployment.py index 70884f9d..466c4c54 100644 --- a/stack_orchestrator/deploy/webapp/request_webapp_deployment.py +++ b/stack_orchestrator/deploy/webapp/request_webapp_deployment.py @@ -172,4 +172,4 @@ def command( # Send the request laconic.publish(deployment_request) finally: - shutil.rmtree(tempdir) + shutil.rmtree(tempdir, ignore_errors=True) -- 2.45.2