Skip to content

Commit

Permalink
Merge pull request #19387 from jmchilton/parameters_model_fixes
Browse files Browse the repository at this point in the history
[24.2] Fix for empty string in regex validator message.
  • Loading branch information
mvdbeek authored Jan 9, 2025
2 parents e251c07 + c717b3e commit 670f834
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 670f834

Please sign in to comment.