single-exception in error_map

This commit is contained in:
James Turk 2023-05-18 17:55:19 -05:00
parent 3eb14f9556
commit 4c1392abff

View File

@ -181,10 +181,13 @@ class Recipe:
name = edge["transform"].name name = edge["transform"].name
print(f" {from_b} -({name})-> {to_b}") print(f" {from_b} -({name})-> {to_b}")
for k, v in edge["transform"].error_map.items(): for k, v in edge["transform"].error_map.items():
if isinstance(k, tuple):
typer.secho( typer.secho(
f" {' '.join(c.__name__ for c in k)} -> {v}", f" {' '.join(c.__name__ for c in k)} -> {v}",
fg=typer.colors.RED, fg=typer.colors.RED,
) )
else:
typer.secho(f" {k.__name__} -> {v}", fg=typer.colors.RED)
def run_once( def run_once(
self, start_beaker: str | None = None, end_beaker: str | None = None self, start_beaker: str | None = None, end_beaker: str | None = None