Fix error when logging exception. #756

Merged
telackey merged 1 commits from telackey/err into main 2024-02-22 00:11:08 +00:00
Showing only changes of commit 45fe8479e5 - Show all commits

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