mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fixed edge case exception handling, which can cause to end in endless loop
This commit is contained in:
parent
946828f232
commit
10fcf6eccb
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue