From d4c6268a462b863c178586913464a3f7db00b3b7 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 6 Jan 2022 22:01:18 +0100 Subject: [PATCH] Generate: allow meta to log-fail as opposed to exception-fail if category is missing in target --- Generate.py | 2 +- host.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Generate.py b/Generate.py index 4704a59d..2d67e237 100644 --- a/Generate.py +++ b/Generate.py @@ -148,7 +148,7 @@ def main(args=None, callback=ERmain): if category_name is None: weights_cache[path][key] = option elif category_name not in weights_cache[path]: - raise Exception(f"Meta: Category {category_name} is not present in {path}.") + logging.warning(f"Meta: Category {category_name} is not present in {path}.") else: weights_cache[path][category_name][key] = option diff --git a/host.yaml b/host.yaml index 6411702a..1b2e6a53 100644 --- a/host.yaml +++ b/host.yaml @@ -64,7 +64,7 @@ generator: # general weights file, within the stated player_files_path location # gets used if players is higher than the amount of per-player files found to fill remaining slots weights_file_path: "weights.yaml" - # Meta file name, within the stated player_files_path location, TODO: re-implement this + # Meta file name, within the stated player_files_path location meta_file_path: "meta.yaml" # Create a spoiler file # 0 -> None