From 5fb9ac4d1dc7ca504d4efa9bf4467d5b5902d786 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 17 Oct 2023 11:15:43 +0200 Subject: [PATCH] Fail gracefully if step reference not found --- lib/galaxy/managers/markdown_util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/managers/markdown_util.py b/lib/galaxy/managers/markdown_util.py index 4e5219251ccc..e4bef5ad1742 100644 --- a/lib/galaxy/managers/markdown_util.py +++ b/lib/galaxy/managers/markdown_util.py @@ -749,7 +749,8 @@ def find_non_empty_group(match): target_match = step_match name = find_non_empty_group(target_match) ref_object_type = "job" - ref_object = invocation.step_invocation_for_label(name).job + invocation_step = invocation.step_invocation_for_label(name) + ref_object = invocation_step and invocation_step.job else: target_match = None ref_object = None