Skip to content

Commit

Permalink
Fail gracefully if step reference not found
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Oct 17, 2023
1 parent 6d8cbee commit 5fb9ac4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/managers/markdown_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5fb9ac4

Please sign in to comment.