def onError(self, e): print_exc() _, value, stack = sys.exc_info() backtrace = traceback.format_exception(type, value, stack) win = FeedbackWindow( "Unfortunately, Tribler ran into an internal error") win.CreateOutputWindow('') for line in backtrace: win.write(line) win.ShowModal()