mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:09:01 +08:00
Print backtrace on console when we are not running a py2exe/py2app build
This commit is contained in:
parent
792c3426f8
commit
79bd590656
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user