We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c53ad6 commit be65b53Copy full SHA for be65b53
README.md
@@ -55,11 +55,11 @@ from email_validator import validate_email, EmailNotValidError
55
email = "my+address@mydomain.tld"
56
57
try:
58
- # Validate.
59
- valid = validate_email(email)
60
-
61
- # Update with the normalized form.
62
- email = valid.email
+ # Validate & take the normalized form of the email
+ # address for all logic beyond this point (especially
+ # before going to a database query where equality
+ # does not take into account normalization).
+ email = validate_email(email).email
63
except EmailNotValidError as e:
64
# email is not valid, exception message is human-readable
65
print(str(e))
0 commit comments