Skip to content

Commit

Permalink
Adjust EmptyValueFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Nov 29, 2024
1 parent 8546b50 commit b160e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tool_util/parser/parameter_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class EmptyFieldParameterValidatorModel(StaticValidatorModel):

@staticmethod
def empty_validate(value: Any, validator: "ValidatorDescription"):
raise_error_if_valiation_fails((value != ""), validator)
raise_error_if_valiation_fails((value not in ("", None)), validator)

def statically_validate(self, value: Any) -> None:
EmptyFieldParameterValidatorModel.empty_validate(value, self)
Expand Down

0 comments on commit b160e7d

Please sign in to comment.