Generate: allow meta to log-fail as opposed to exception-fail if category is missing in target

This commit is contained in:
Fabian Dill 2022-01-06 22:01:18 +01:00
parent aeda76c058
commit d4c6268a46
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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