mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -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()
|
||||
except:
|
||||
# will handle below
|
||||
pass
|
||||
traceback.print_exc()
|
||||
pm = None
|
||||
|
||||
if pm:
|
||||
# gl workarounds
|
||||
|
|
Loading…
Reference in a new issue