diff --git a/lib/galaxy/tools/wrappers.py b/lib/galaxy/tools/wrappers.py index a7425d50472..89776480080 100644 --- a/lib/galaxy/tools/wrappers.py +++ b/lib/galaxy/tools/wrappers.py @@ -83,7 +83,7 @@ class InputValueWrapper(ToolParameterValueWrapper): if self.input.type == 'boolean' and isinstance(other, string_types): return str(self) # For backward compatibility, allow `$wrapper != ""` for optional non-text param - if self.input.optional and self.value is None and isinstance(other, string_types): + if self.input.optional and self.value is None and self.input.type != 'boolean': return str(self) cast = { 'text': str,