Skip to content

Commit

Permalink
only match filters that are descendants or data/collection
Browse files Browse the repository at this point in the history
otherwise action filters are also checked which results in an error
since there is not text content.
  • Loading branch information
bernt-matthias committed Nov 26, 2024
1 parent bfa28df commit 9cae33f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tool_util/linters/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def lint(cls, tool_source: "ToolSource", lint_ctx: "LintContext"):
tool_xml = getattr(tool_source, "xml_tree", None)
if not tool_xml:
return
for filter in tool_xml.findall("./outputs//filter"):
for filter in tool_xml.findall("./outputs/*/filter"):
try:
ast.parse(filter.text, mode="eval")
except Exception as e:
Expand Down

0 comments on commit 9cae33f

Please sign in to comment.