Skip to content

Commit

Permalink
Merge pull request #690 from JureBl/bugfix
Browse files Browse the repository at this point in the history
Fix AttributeError in MetaInfo class
  • Loading branch information
geekygirlsarah authored Oct 26, 2023
2 parents 1024a5e + 16fb8b5 commit c4b4f97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c4b4f97

Please sign in to comment.