@@ -41,7 +41,10 @@ class bgThread(Thread):
def on_crash(self, exc_info, msg, *fmt, **kwargs):
sys.stderr.write((msg + "\n") % fmt)
- traceback.print_exception(*exc_info, file=sys.stderr)
+ traceback.print_exception(exc_info[0],
+ exc_info[1],
+ exc_info[2],
+ None, sys.__stderr__)
def run(self):
shutdown = self._is_shutdown
@@ -194,7 +194,10 @@ class Timer(Thread):
if not self.schedule.handle_error(exc_info):
warnings.warn(TimedFunctionFailed(repr(exc))),
sys.stderr.write("Error in timer: %r\n" % (exc, ))
finally:
del(exc_info)