Don't display greenlet errors twice
This commit is contained in:
parent
b0a125c113
commit
6d644922d5
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ def handleError(*args):
|
||||||
return
|
return
|
||||||
if not silent and args[0].__name__ != "Notify":
|
if not silent and args[0].__name__ != "Notify":
|
||||||
logging.exception("Unhandled exception")
|
logging.exception("Unhandled exception")
|
||||||
sys.__excepthook__(*args)
|
if "greenlet.py" not in args[2].tb_frame.f_code.co_filename: # Don't display error twice
|
||||||
|
sys.__excepthook__(*args)
|
||||||
|
|
||||||
|
|
||||||
# Ignore notify errors
|
# Ignore notify errors
|
||||||
|
|
Loading…
Reference in a new issue