Email() validation failed should raise a StopValidation error
Look at this case:
class UserForm(FlaskForm):
email = StringField('email', validators=[Email()])
def validate_email(self, field):
if not User.query.filter_by(email=email).first():
raise ...
If input is not a email, validate_email will still be executed, which make no sense. So I think Email should raise a StopValidation error.
Im not really clear as to what you're saying here. In this example assuming you enter a non valid email the email field will already have the error associated to it. At the validate_email method you can add a custom logic like check to see if the email might potentially be assigned already like in your example.
Either way you would want to verify if the form itself can validate via form.validate().
See #61 for more discussion on inconsistency in validation.
Summary: there needs to be a comprehensive review about which validators should stop validation versus continue. Expecting that an invalid email address doesn't continue validation does make sense, it's not clear at first why validators should have to validate the data before validating the value.