mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Don't throw odd traceback on app close from thread cleanup issues.
This commit is contained in:
parent
e6c40deb2b
commit
d080e6dfc3
@ -169,6 +169,8 @@ def setup_logging(debug_stdout):
|
||||
|
||||
# Log uncaught exceptions
|
||||
def exception_log(typ, val, tb):
|
||||
if not traceback:
|
||||
return
|
||||
s = traceback.format_exception(typ, val, tb)
|
||||
logging.exception("".join(s))
|
||||
sys.__excepthook__(typ, val, tb)
|
||||
|
Loading…
Reference in New Issue
Block a user