mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 06:03:57 -06:00
Prevent crash handler exception
This commit is contained in:
parent
bf1ecba641
commit
6cea9c59e8
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue