From 45fe8479e548e218af392696f40c59b8a3519eea Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Wed, 21 Feb 2024 18:10:26 -0600 Subject: [PATCH] Fix error when logging exception. --- stack_orchestrator/deploy/webapp/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack_orchestrator/deploy/webapp/util.py b/stack_orchestrator/deploy/webapp/util.py index 9dbc19c4..6cfdb118 100644 --- a/stack_orchestrator/deploy/webapp/util.py +++ b/stack_orchestrator/deploy/webapp/util.py @@ -46,7 +46,7 @@ def logged_cmd(log_file, *vargs): result.check_returncode() return result.stdout.decode() except Exception as err: - print(result.stderr.decode(), log_file) + print(str(err), file=log_file) raise err