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.
This commit is contained in:
Damien Elmes 2020-01-14 14:56:28 +10:00
parent 2fb5ff5d9c
commit ba670c4be1

View file

@ -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