Skip to content

Commit

Permalink
move fix for empty options
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Oct 20, 2021
1 parent e86e91f commit 34be7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tool_util/linters/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def lint_inputs(tool_xml, lint_ctx):
# lint statically defined options
if any(['value' not in option.attrib for option in select_options]):
lint_ctx.error(f"Select parameter [{param_name}] has option without value")
if len(set([option.text.strip() for option in select_options if option.text is not None])) != len(select_options):
if len(set([option.text.strip() for option in select_options])) != len(select_options):
lint_ctx.error(f"Select parameter [{param_name}] has multiple options with the same text content")
if len(set([option.attrib.get("value") for option in select_options])) != len(select_options):
lint_ctx.error(f"Select parameter [{param_name}] has multiple options with the same value")
Expand Down

0 comments on commit 34be7a6

Please sign in to comment.