Fix wrong exception being catched in get_config_json()

This commit is contained in:
Abdo 2025-05-28 11:37:46 +03:00
parent 544b5f54d7
commit 0198a58a1c

View file

@ -658,7 +658,7 @@ def set_meta_json() -> bytes:
def get_config_json() -> bytes: def get_config_json() -> bytes:
try: try:
return get_setting_json(aqt.mw.col.conf.get_immutable) return get_setting_json(aqt.mw.col.conf.get_immutable)
except NotFoundError: except KeyError:
return generic_pb2.Json(json=b"null").SerializeToString() return generic_pb2.Json(json=b"null").SerializeToString()