mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
Fix wrong exception being catched in get_config_json()
This commit is contained in:
parent
544b5f54d7
commit
0198a58a1c
1 changed files with 1 additions and 1 deletions
|
@ -658,7 +658,7 @@ def set_meta_json() -> bytes:
|
|||
def get_config_json() -> bytes:
|
||||
try:
|
||||
return get_setting_json(aqt.mw.col.conf.get_immutable)
|
||||
except NotFoundError:
|
||||
except KeyError:
|
||||
return generic_pb2.Json(json=b"null").SerializeToString()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue