This commit is contained in:
László Károlyi 2019-03-02 02:20:16 +01:00
parent 443f264fd7
commit 3343039995
Signed by: karolyi
GPG Key ID: 2DCAF25E55735BFE
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@ def validate_email(
email_address: str, check_regex: bool = True, check_mx: bool = True,
smtp_timeout: int = 10, use_blacklist: bool = True) -> bool:
if check_regex and not regex_check(email_address):
if check_regex and not regex_check(
value=email_address, use_blacklist=use_blacklist):
return False
if check_mx and not mx_check(email_address, smtp_timeout=smtp_timeout):