From 6cea9c59e89658e4d68c76a12e0a071486de0dc2 Mon Sep 17 00:00:00 2001 From: Aleksei S Date: Fri, 24 Nov 2017 11:59:09 +0100 Subject: [PATCH] Prevent crash handler exception --- cura/CrashHandler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cura/CrashHandler.py b/cura/CrashHandler.py index c6f94f0a80..fc12bff620 100644 --- a/cura/CrashHandler.py +++ b/cura/CrashHandler.py @@ -280,5 +280,7 @@ class CrashHandler: Application.getInstance().callLater(self._show) def _show(self): - self.dialog.exec_() - os._exit(1) + # When the exception is not in the fatal_exception_types list, the dialog is not created, so we don't need to show it + if self.dialog: + self.dialog.exec_() + os._exit(1)