From 862af2c849830e59da803831762326cefc885539 Mon Sep 17 00:00:00 2001 From: Dpeta Date: Fri, 18 Mar 2022 01:35:47 +0000 Subject: [PATCH] Can't use QtWidgets.QMessageBox() this early --- quirks.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/quirks.py b/quirks.py index 3945acb..b0e3e71 100644 --- a/quirks.py +++ b/quirks.py @@ -72,11 +72,11 @@ class ScriptQuirks(object): if module is None: continue except Exception as e: - print("Error loading %s: %s (in quirks.py)" % (os.path.basename(name), e)) - msgbox = QtWidgets.QMessageBox() - msgbox.setWindowTitle("Error!") - msgbox.setText("Error loading %s: %s (in quirks.py)" % (os.path.basename(filename), e)) - msgbox.exec_() + PchumLog.warning("Error loading %s: %s (in quirks.py)" % (os.path.basename(name), e)) + #msgbox = QtWidgets.QMessageBox() + #msgbox.setWindowTitle("Error!") + #msgbox.setText("Error loading %s: %s (in quirks.py)" % (os.path.basename(filename), e)) + #msgbox.exec_() else: if self.modHas(module, 'setup'): module.setup()