Commit b698048d authored by lintangsutawika's avatar lintangsutawika
Browse files

better error warning

parent 62156100
...@@ -42,8 +42,12 @@ for root, subdirs, file_list in os.walk(task_dir): ...@@ -42,8 +42,12 @@ for root, subdirs, file_list in os.walk(task_dir):
if "group" in config: if "group" in config:
for group in config["group"]: for group in config["group"]:
register_group(group)(SubClass) register_group(group)(SubClass)
except Exception as err: except Exception:
print(f"Unexpected {err=}, {type(err)=}") eval_logger.warning(
"Failed to load config at in\n"
f" {yaml_path}\n"
" Config will not be added to registry"
)
TASK_REGISTRY = task_registry TASK_REGISTRY = task_registry
GROUP_REGISTRY = group_registry GROUP_REGISTRY = group_registry
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment