Closed guruofgentoo closed 5 months ago
Note to self: related #139
Just to push back on the duplicate tag a little bit: I don't envision ValidationFailure
being raised here (which seems to be what #139 argues for), because it's not a validation exception. I would expect the underlying exception to be raised, rather than being trapped and returned differently.
With the recent change to email validator signature, this previously-correct usage now fails:
But that's not a validation issue - it's a programming issue, and one that becomes difficult to track down when the form validation library is checking True/False and reporting an invalid email address.
When the error is not because of the input being validated, but rather due to the way the validator is called, we need to have exceptions raised.