add more log
This commit is contained in:
parent
94bbade62e
commit
c0067b7657
|
@ -534,12 +534,15 @@ def email_can_be_used_as_mailbox(email_address: str) -> bool:
|
||||||
email_address, check_deliverability=False, allow_smtputf8=False
|
email_address, check_deliverability=False, allow_smtputf8=False
|
||||||
).domain
|
).domain
|
||||||
except EmailNotValidError:
|
except EmailNotValidError:
|
||||||
|
LOG.d("%s is invalid email address", email_address)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if not domain:
|
if not domain:
|
||||||
|
LOG.d("no valid domain associated to %s", email_address)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if SLDomain.get_by(domain=domain):
|
if SLDomain.get_by(domain=domain):
|
||||||
|
LOG.d("%s is a SL domain", email_address)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
from app.models import CustomDomain
|
from app.models import CustomDomain
|
||||||
|
|
Loading…
Reference in New Issue