mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Use sys.exit() instead of exit()
Apparently there is a difference...
This commit is contained in:
parent
803b4fde8d
commit
543c58d57a
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ def show(type, value, tb):
|
||||||
application = QCoreApplication.instance()
|
application = QCoreApplication.instance()
|
||||||
if not application:
|
if not application:
|
||||||
traceback.print_exception(type, value, tb)
|
traceback.print_exception(type, value, tb)
|
||||||
exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
dialog = QDialog()
|
dialog = QDialog()
|
||||||
dialog.setWindowTitle("Oops!")
|
dialog.setWindowTitle("Oops!")
|
||||||
|
@ -44,4 +44,4 @@ def show(type, value, tb):
|
||||||
buttons.helpRequested.connect(lambda: webbrowser.open("http://github.com/Ultimaker/Cura/issues"))
|
buttons.helpRequested.connect(lambda: webbrowser.open("http://github.com/Ultimaker/Cura/issues"))
|
||||||
|
|
||||||
dialog.exec_()
|
dialog.exec_()
|
||||||
exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue