Skip to content

Commit

Permalink
Fix for empty string in regex validator message.
Browse files Browse the repository at this point in the history
xref #19386
  • Loading branch information
jmchilton committed Jan 8, 2025
1 parent e251c07 commit c717b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/tool_util/parser/parameter_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,9 @@ def raise_error_if_valiation_fails(
raise AssertionError("Validator logic problem - computed validation value must be boolean")
if message is None:
message = validator.message
if message is None:
if not message:
message = DEFAULT_VALIDATOR_MESSAGE
assert message
assert message is not None
if value_to_show and "%s" in message:
message = message % value_to_show
negate = validator.negate
Expand Down

0 comments on commit c717b3e

Please sign in to comment.