diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 0fb4726d2..a538aa6c3 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -213,6 +213,7 @@ GithubAnon0000 Mike Hardy Danika_Dakika Mumtaz Hajjo Alrifai +Jakub Fidler ******************** diff --git a/qt/aqt/taskman.py b/qt/aqt/taskman.py index b1e97637e..2ca1c6670 100644 --- a/qt/aqt/taskman.py +++ b/qt/aqt/taskman.py @@ -144,4 +144,11 @@ class TaskManager(QObject): self._closures = [] for closure in closures: - closure() + try: + closure() + except Exception as e: + + def raise_exception(exception=e) -> None: + raise exception + + QTimer.singleShot(0, raise_exception)