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)