Commits

James Crasta committed 69f0a2e

Fix another validator message issue. Refs #168.

Comments (0)

Files changed (1)

wtforms/validators.py

                 message = self.message
 
             field.errors[:] = []
-            raise StopValidation(self.message)
+            raise StopValidation(message)
 
 
 class Regexp(object):
                 else:
                     message = self.message
 
-            raise ValidationError(self.message)
+            raise ValidationError(message)
 
 
 class Email(Regexp):