Skip to content

Commit

Permalink
fix: SkelModule not able to handle empty index definitions (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
phorward authored Jan 19, 2025
1 parent 50af0e6 commit 443c1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viur/core/prototypes/skelmodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __load_indexes_from_file() -> dict[str, list]:
with open(os.path.join(conf.instance.project_base_path, "index.yaml"), "r") as file:
indexes = yaml.safe_load(file)
indexes = indexes.get("indexes", [])
for index in indexes:
for index in indexes or ():
index["properties"] = [_property["name"] for _property in index["properties"]]
indexes_dict.setdefault(index["kind"], []).append(index)

Expand Down

0 comments on commit 443c1c0

Please sign in to comment.