mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
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:
parent
2fb5ff5d9c
commit
ba670c4be1
1 changed files with 2 additions and 1 deletions
|
@ -341,7 +341,8 @@ def _run(argv=None, exec=True):
|
||||||
pmLoadResult = pm.setupMeta()
|
pmLoadResult = pm.setupMeta()
|
||||||
except:
|
except:
|
||||||
# will handle below
|
# will handle below
|
||||||
pass
|
traceback.print_exc()
|
||||||
|
pm = None
|
||||||
|
|
||||||
if pm:
|
if pm:
|
||||||
# gl workarounds
|
# gl workarounds
|
||||||
|
|
Loading…
Reference in a new issue