Skip to content

Commit a5debd4

Browse files
committed
Fix deprecation warning from email_validator
From my understanding of the docs, this is not a behavior change.
1 parent b2da8eb commit a5debd4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

minfraud/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _ip_address(s: Optional[str]) -> str:
5757
def _email_or_md5(s: str) -> str:
5858
if re.match(r"^[0-9A-Fa-f]{32}$", s):
5959
return s
60-
return validate_email(s, check_deliverability=False).email
60+
return validate_email(s, check_deliverability=False).normalized
6161

6262

6363
# based off of:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = [
88
dependencies = [
99
"setuptools>=60.0.0",
1010
"aiohttp>=3.6.2,<4.0.0",
11-
"email_validator>=1.1.1,<3.0.0",
11+
"email_validator>=2.0.0,<3.0.0",
1212
"geoip2>=4.7.0,<5.0.0",
1313
"requests>=2.24.0,<3.0.0",
1414
"voluptuous",

0 commit comments

Comments
 (0)