Skip to content

Commit d997de2

Browse files
committed
include sakari's comment
1 parent 0ff3d63 commit d997de2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metaflow/plugins/argo/capture_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def parse_workflow_failures():
2626
def group_failures_by_template(failures):
2727
groups = {}
2828
for failure in failures:
29-
if "finishedAt" in failure and failure["finishedAt"] is None:
29+
if failure.get("finishedAt", None) is None:
3030
timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
3131
failure["finishedAt"] = timestamp
3232
groups.setdefault(failure["templateName"], []).append(failure)

0 commit comments

Comments
 (0)