Skip to content

Commit

Permalink
fix(cli): add validation for missing task configuration before runnin…
Browse files Browse the repository at this point in the history
…g HyFi task pipelines
  • Loading branch information
entelecheia committed Jun 26, 2023
1 parent 3048c32 commit a2711cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hyfi/__cli__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def run_copy(**args):


def run_task(**args):
print(args["task"].keys())
if "task" not in args:
raise ValueError("No task configuration found")
task = HyFI.task_config(**args["task"])
HyFI.run_task_pipelines(task)


def cli_main(cfg: DictConfig) -> None:
Expand Down

0 comments on commit a2711cf

Please sign in to comment.