mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 21:38:18 +08:00
bug fix on printing exception traceback (#268)
This commit is contained in:
committed by
Robert Nishihara
parent
2b8e6485e3
commit
7bf80b6b22
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user