Don't throw odd traceback on app close from thread cleanup issues.

This commit is contained in:
Cole Robinson 2010-04-12 17:43:55 -04:00
parent e6c40deb2b
commit d080e6dfc3

View File

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