Skip to content

Commit

Permalink
use Version for profile comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Jul 31, 2023
1 parent f2fdb2c commit 51b5943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tool_util/linters/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def __check_format(node, lint_ctx, profile: str, allow_ext=False):
fmt = node.attrib.get("format")
if fmt == "input":
message = f"Using format='input' on {node.tag} is deprecated. Use the format_source attribute."
if profile <= "16.01":
if Version(str(profile)) <= Version("16.01"):
lint_ctx.warn(message, node=node)
else:
lint_ctx.error(message, node=node)
Expand Down

0 comments on commit 51b5943

Please sign in to comment.