Commit 1eb91d36 authored by &'s avatar &
Browse files

adds missing task error

parent 61aa411b
from pprint import pprint
from . import superglue from . import superglue
from . import glue from . import glue
from . import arc from . import arc
...@@ -96,7 +98,12 @@ ALL_TASKS = sorted(list(TASK_REGISTRY)) ...@@ -96,7 +98,12 @@ ALL_TASKS = sorted(list(TASK_REGISTRY))
def get_task(task_name): def get_task(task_name):
return TASK_REGISTRY[task_name] try:
return TASK_REGISTRY[task_name]
except KeyError as e:
print("Available tasks:")
pprint(TASK_REGISTRY)
raise KeyError(f"Missing task {task_name}")
def get_task_dict(task_name_list): def get_task_dict(task_name_list):
......
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