trafaret
trafaret copied to clipboard
Unicode error when checking some emails
An email with a . immediately following the @ will produce a UnicodeError:
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)
To reproduce:
import trafaret as t
t.Email.check("[email protected]")