From 79bd590656a6f18d33f87197141cf31bceed516b Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Wed, 19 Aug 2015 19:13:44 +0200 Subject: [PATCH] Print backtrace on console when we are not running a py2exe/py2app build --- cura/CrashHandler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cura/CrashHandler.py b/cura/CrashHandler.py index 1771a5c548..57d25b9bfa 100644 --- a/cura/CrashHandler.py +++ b/cura/CrashHandler.py @@ -7,9 +7,11 @@ from PyQt5.QtCore import QT_VERSION_STR, PYQT_VERSION_STR, QCoreApplication from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QTextEdit def show(type, value, tb): + if not hasattr(sys, "frozen"): + traceback.print_exception(type, value, tb) + application = QCoreApplication.instance() if not application: - traceback.print_exception(type, value, tb) sys.exit(1) dialog = QDialog()