From 543c58d57abb55101b2b81648e31262fe951610e Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Tue, 4 Aug 2015 15:38:19 +0200 Subject: [PATCH] Use sys.exit() instead of exit() Apparently there is a difference... --- cura/CrashHandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/CrashHandler.py b/cura/CrashHandler.py index f6d389f518..1771a5c548 100644 --- a/cura/CrashHandler.py +++ b/cura/CrashHandler.py @@ -10,7 +10,7 @@ def show(type, value, tb): application = QCoreApplication.instance() if not application: traceback.print_exception(type, value, tb) - exit(1) + sys.exit(1) dialog = QDialog() dialog.setWindowTitle("Oops!") @@ -44,4 +44,4 @@ def show(type, value, tb): buttons.helpRequested.connect(lambda: webbrowser.open("http://github.com/Ultimaker/Cura/issues")) dialog.exec_() - exit(1) + sys.exit(1)