From a435004459ce4d72209a86f3156a90257b225f1d Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Thu, 8 Oct 2015 11:53:05 +0200 Subject: [PATCH] Fix crash handler to not complain about debug_mode not being set --- cura/CrashHandler.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cura/CrashHandler.py b/cura/CrashHandler.py index b369717f79..57de2959eb 100644 --- a/cura/CrashHandler.py +++ b/cura/CrashHandler.py @@ -8,11 +8,10 @@ from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QTex from UM.i18n import i18nCatalog catalog = i18nCatalog("cura") -debug_mode = False - def show(exception_type, value, tb): - if QCoreApplication.instance() and QCoreApplication.instance().getCommandLineOption("debug-mode", False): - debug_mode = True + debug_mode = False + if QCoreApplication.instance(): + debug_mode = QCoreApplication.instance().getCommandLineOption("debug-mode", False) traceback.print_exception(exception_type, value, tb)