From 16fb8b590fc5bbe824b30f6a016d156fcc0d9d59 Mon Sep 17 00:00:00 2001 From: jure Date: Tue, 24 Oct 2023 18:26:50 +0200 Subject: [PATCH] Fix AttributeError in MetaInfo class --- web/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/models.py b/web/models.py index 9facb9aca..d32fbcb42 100644 --- a/web/models.py +++ b/web/models.py @@ -242,6 +242,7 @@ def __init__(self): meta_info_json = json.load(meta_file) self.structures = meta_info_json["structures"] self.languages = meta_info_json["languages"] + def language_name(self, language_key): """ @@ -281,7 +282,7 @@ def load_languages(self, language_keys_versions, meta_structure): raise MissingStructureError( meta_structure, language_key, - self.language_friendly_name(language_key), + self.language_name(language_key), version, ) from file_not_found except KeyError as key_error: