Skip to content

Commit

Permalink
really allow in-range validator for txt
Browse files Browse the repository at this point in the history
just enabling the linter
#18403 was not sufficient
  • Loading branch information
bernt-matthias committed Jun 17, 2024
1 parent 3e403e0 commit cb293ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tools/parameters/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def __init__(self, message, range_min, range_max, exclude_min=False, exclude_max
op1 = "<"
if self.exclude_max:
op2 = "<"
expression = f"float('{self.min}') {op1} value {op2} float('{self.max}')"
expression = f"float('{self.min}') {op1} float(value) {op2} float('{self.max}')"
if message is None:
message = f"Value ('%s') must {'not ' if negate == 'true' else ''}fulfill {expression}"
super().__init__(message, expression, negate)
Expand Down

0 comments on commit cb293ff

Please sign in to comment.