Generate: allow meta to log-fail as opposed to exception-fail if category is missing in target
This commit is contained in:
parent
aeda76c058
commit
d4c6268a46
|
@ -148,7 +148,7 @@ def main(args=None, callback=ERmain):
|
||||||
if category_name is None:
|
if category_name is None:
|
||||||
weights_cache[path][key] = option
|
weights_cache[path][key] = option
|
||||||
elif category_name not in weights_cache[path]:
|
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:
|
else:
|
||||||
weights_cache[path][category_name][key] = option
|
weights_cache[path][category_name][key] = option
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ generator:
|
||||||
# general weights file, within the stated player_files_path location
|
# 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
|
# gets used if players is higher than the amount of per-player files found to fill remaining slots
|
||||||
weights_file_path: "weights.yaml"
|
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"
|
meta_file_path: "meta.yaml"
|
||||||
# Create a spoiler file
|
# Create a spoiler file
|
||||||
# 0 -> None
|
# 0 -> None
|
||||||
|
|
Loading…
Reference in New Issue