Show More
@@ -110,7 +110,12 b' class CrashHandler(object):' | |||||
110 |
|
110 | |||
111 | def __call__(self, etype, evalue, etb): |
|
111 | def __call__(self, etype, evalue, etb): | |
112 | """Handle an exception, call for compatible with sys.excepthook""" |
|
112 | """Handle an exception, call for compatible with sys.excepthook""" | |
113 |
|
113 | |||
|
114 | # do not allow the crash handler to be called twice without reinstalling it | |||
|
115 | # this prevents unlikely errors in the crash handling from entering an | |||
|
116 | # infinite loop. | |||
|
117 | sys.excepthook = sys.__excepthook__ | |||
|
118 | ||||
114 | # Report tracebacks shouldn't use color in general (safer for users) |
|
119 | # Report tracebacks shouldn't use color in general (safer for users) | |
115 | color_scheme = 'NoColor' |
|
120 | color_scheme = 'NoColor' | |
116 |
|
121 |
General Comments 0
You need to be logged in to leave comments.
Login now