Skip to content

Commit

Permalink
Fix deprecation warning from email_validator
Browse files Browse the repository at this point in the history
From my understanding of the docs, this is not a behavior change.
  • Loading branch information
oschwald committed Nov 20, 2023
1 parent b2da8eb commit a5debd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion minfraud/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _ip_address(s: Optional[str]) -> str:
def _email_or_md5(s: str) -> str:
if re.match(r"^[0-9A-Fa-f]{32}$", s):
return s
return validate_email(s, check_deliverability=False).email
return validate_email(s, check_deliverability=False).normalized


# based off of:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = [
dependencies = [
"setuptools>=60.0.0",
"aiohttp>=3.6.2,<4.0.0",
"email_validator>=1.1.1,<3.0.0",
"email_validator>=2.0.0,<3.0.0",
"geoip2>=4.7.0,<5.0.0",
"requests>=2.24.0,<3.0.0",
"voluptuous",
Expand Down

0 comments on commit a5debd4

Please sign in to comment.