mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Also exit when the crash handler dialog is not created
This commit is contained in:
parent
d839b62e42
commit
77daad1f98
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ else:
|
||||||
# List of exceptions that should be considered "fatal" and abort the program.
|
# List of exceptions that should be considered "fatal" and abort the program.
|
||||||
# These are primarily some exception types that we simply cannot really recover from
|
# These are primarily some exception types that we simply cannot really recover from
|
||||||
# (MemoryError and SystemError) and exceptions that indicate grave errors in the
|
# (MemoryError and SystemError) and exceptions that indicate grave errors in the
|
||||||
# code that cause the Python interpreter to fail (SyntaxError, ImportError).
|
# code that cause the Python interpreter to fail (SyntaxError, ImportError).
|
||||||
fatal_exception_types = [
|
fatal_exception_types = [
|
||||||
MemoryError,
|
MemoryError,
|
||||||
SyntaxError,
|
SyntaxError,
|
||||||
|
@ -289,4 +289,4 @@ class CrashHandler:
|
||||||
# When the exception is not in the fatal_exception_types list, the dialog is not created, so we don't need to show it
|
# 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:
|
if self.dialog:
|
||||||
self.dialog.exec_()
|
self.dialog.exec_()
|
||||||
os._exit(1)
|
os._exit(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue