Fix error when logging exception.
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 58s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m14s
Smoke Test / Run basic test suite (pull_request) Successful in 4m42s
Deploy Test / Run deploy test suite (pull_request) Successful in 6m31s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m33s

This commit is contained in:
Thomas E Lackey 2024-02-21 18:10:26 -06:00
parent 08438b1cd5
commit 45fe8479e5

View File

@ -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