Browse Source

Fix exception hook context formatter

master
Sean Johnson 2 years ago
parent
commit
8739a47e47
  1. 2
      resource/tools/backup-volumes.py

2
resource/tools/backup-volumes.py

@ -87,7 +87,7 @@ def excepthook(etype: Type[T], value: T, tb: "traceback object"):
context = {
"exc_class": type.__name__,
"exc_text": "".join(traceback.format_exception_only(etype, value)),
"traceback": "".join(traceback.format_exception(etype, value, traceback)),
"traceback": "".join(traceback.format_exception(etype, value, tb)),
}
log_stdout(MSG_ERROR, **context)

Loading…
Cancel
Save