From ba670c4be14102478aec4dfd2bd244e5d3a795e8 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 14 Jan 2020 14:56:28 +1000 Subject: [PATCH] if pm.meta() fails, need to unset pm This prevents a startup failure caused by trying to set the UI scale when .meta() is not working. Startup still fails, but the correct message is displayed now. --- qt/aqt/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index 1400a6b71..7c79d9538 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -341,7 +341,8 @@ def _run(argv=None, exec=True): pmLoadResult = pm.setupMeta() except: # will handle below - pass + traceback.print_exc() + pm = None if pm: # gl workarounds