Commit 6511cd79 authored by Trevor Cappallo's avatar Trevor Cappallo
Browse files

tweak

parent e298f645
...@@ -28,7 +28,7 @@ def __exit_handler(logger, notify): ...@@ -28,7 +28,7 @@ def __exit_handler(logger, notify):
# add the last uncaught exception that has occurred as an error, if present # add the last uncaught exception that has occurred as an error, if present
try: try:
tb_lines = traceback.format_exception(sys.last_type, sys.last_value, sys.last_traceback) tb_lines = traceback.format_exception(sys.last_type, sys.last_value, sys.last_traceback)
tb_str = '\n'.join([(' :: ' + line.strip()) for line in tb_lines]) tb_str = '\n'.join([line.strip() for line in tb_lines])
logging.critical("Uncaught exception detected! Traceback follows:\n%s", tb_str) logging.critical("Uncaught exception detected! Traceback follows:\n%s", tb_str)
except AttributeError: except AttributeError:
pass pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment