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