From 10fcf6eccb15502ee39f0efb87e68081e5430d81 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 28 Oct 2020 19:15:46 +0100 Subject: [PATCH] fixed edge case exception handling, which can cause to end in endless loop --- pype/tools/pyblish_pype/control.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pype/tools/pyblish_pype/control.py b/pype/tools/pyblish_pype/control.py index 0162848f2b..a249f9ed27 100644 --- a/pype/tools/pyblish_pype/control.py +++ b/pype/tools/pyblish_pype/control.py @@ -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) )