bug fix on printing exception traceback (#268)

This commit is contained in:
Johann Schleier-Smith
2017-02-10 21:05:05 -08:00
committed by Robert Nishihara
parent 2b8e6485e3
commit 7bf80b6b22
+1 -1
View File
@@ -932,7 +932,7 @@ def custom_excepthook(type, value, tb):
global_worker.redis_client.hmset(b"Drivers:" + global_worker.worker_id,
{"exception": error_message})
# Call the normal excepthook.
normal_excepthook(type, value, traceback)
normal_excepthook(type, value, tb)
sys.excepthook = custom_excepthook
def print_error_messages(worker):