Avoid crashing in atexit.

master
Tomeu Vizoso 17 years ago
parent 1cb7700136
commit 87d59ae13b

@ -82,6 +82,9 @@ class StderrCatcher:
_log_writer.write(STDERR_LEVEL, txt)
sys.__stderr__.write(txt)
def flush(self):
sys.__stderr__.flush()
def __exception_handler(typ, exc, tb):
trace = StringIO()
traceback.print_exception(typ, exc, tb, None, trace)

Loading…
Cancel
Save