Hi! Anyone knows if it's possible to keep cards af...
# ask-metaflow
m
Hi! Anyone knows if it's possible to keep cards after a step failed? For example the following works and I'm able to view the html card from
start
on the UI.
Copy code
@card(type="html")
@catch(var="error")
@step
def start(self):
    self.html = """<h1>hello world</h1>"""
    raise Exception("boom!")
    self.next(self.end)

def end(self):
    if self.error:
        raise self.error
However the problem is I can't retry that step on argo because as
start
has the catch it didn't fail. The step that fails is
end
I would like to do something like this
Copy code
@card(type="html")
@step
def start(self):
    self.html = """<h1>hello world</h1>"""
    raise Exception("boom!")
Or like this where
start
step fails but already produced cards are accesible through metaflow UI.
Copy code
@card
@step
def start(self):
    current.card.append(HTMLCard(html=html))
    raise Exception("boom!")