Fix error when logging exception. (#756)
Reviewed-on: https://git.vdb.to/cerc-io/stack-orchestrator/pulls/756 Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>ci-test^2 v1.1.0-4a4d48d-202402220016
parent
08438b1cd5
commit
4a4d48ddb9
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue