fixed edge case exception handling, which can cause to end in endless loop

This commit is contained in:
iLLiCiTiT 2020-10-28 19:15:46 +01:00
parent 946828f232
commit 10fcf6eccb

View file

@ -384,8 +384,11 @@ class Controller(QtCore.QObject):
except Exception:
# TODO this should be handled much differently
# TODO emit crash signal to show message box with traceback
exc_type, exc_msg, exc_tb = sys.exc_info()
traceback.print_exception(exc_type, exc_msg, exc_tb)
self.is_running = False
self.was_stopped.emit()
return util.defer(
500, lambda: on_unexpected_error(error=exc_msg)
)