Skip to content

Commit

Permalink
provide compatibility with formencode validators
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed Nov 26, 2012
1 parent 4d123d0 commit c382eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tw2/core/validation.py
Expand Up @@ -76,7 +76,7 @@ def message(self):
def safe_validate(validator, value, state=None):
try:
value = validator.to_python(value, state=None)
validator.validate_python(value)
validator.validate_python(value, state=None)
return value
except ValidationError:
return Invalid
Expand Down

0 comments on commit c382eed

Please sign in to comment.