Skip to content

Commit 986e10e

Browse files
authored
[card] bug fix when card type doesn't exist (#1725)
1 parent 2588f1d commit 986e10e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metaflow/plugins/cards/card_cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from contextlib import contextmanager
1818
from functools import wraps
1919
from metaflow.exception import MetaflowNamespaceMismatch
20+
2021
from .card_datastore import CardDatastore, NUM_SHORT_HASH_CHARS
2122
from .exception import (
2223
CardClassFoundException,
@@ -736,8 +737,7 @@ def create(
736737

737738
if error_stack_trace is not None and mode != "refresh":
738739
rendered_content = error_card().render(task, stack_trace=error_stack_trace)
739-
740-
if (
740+
elif (
741741
rendered_info.is_implemented
742742
and rendered_info.timed_out
743743
and mode != "refresh"

0 commit comments

Comments
 (0)