Prevent crash handler exception

This commit is contained in:
Aleksei S 2017-11-24 11:59:09 +01:00
parent bf1ecba641
commit 6cea9c59e8

View file

@ -280,5 +280,7 @@ class CrashHandler:
Application.getInstance().callLater(self._show) Application.getInstance().callLater(self._show)
def _show(self): def _show(self):
self.dialog.exec_() # When the exception is not in the fatal_exception_types list, the dialog is not created, so we don't need to show it
os._exit(1) if self.dialog:
self.dialog.exec_()
os._exit(1)