TODO: write test...
This commit is contained in:
John Chilton
2016-03-21 13:51:26 +00:00
parent 19bf334c77
commit 2efd9c2687
+1 -1
View File
@@ -210,7 +210,7 @@ class ToolParameter( object, Dictifiable ):
return value
def validate( self, value, history=None, workflow_building_mode=False ):
if value == "" and self.optional:
if value in ["", None] and self.optional:
return
for validator in self.validators:
validator.validate( value, history )