def on_unexpected_error(error): # TODO this should be handled much differently # TODO emit crash signal to show message box with traceback? self.is_running = False self.was_stopped.emit() util.u_print(u"An unexpected error occurred:\n %s" % error) return util.defer(500, on_finished)
def on_unexpected_error(error): util.u_print(u"An unexpected error occurred:\n %s" % error) return util.defer(500, on_finished_)