ambigious --> ambiguous

Also added a missing "is" into a log message.
This commit is contained in:
Alessio Parma 2021-07-24 11:07:38 +02:00
parent d476b8684e
commit b6bc0ca47d
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ def validate_email_or_fail(
) -> Optional[bool]:
"""
Return `True` if the email address validation is successful, `None`
if the validation result is ambigious, and raise an exception if the
if the validation result is ambiguous, and raise an exception if the
validation fails.
"""
email_address = EmailAddress(address=email_address)
@ -64,12 +64,12 @@ def validate_email(email_address: str, **kwargs):
Return `True` or `False` depending if the email address exists
or/and can be delivered.
Return `None` if the result is ambigious.
Return `None` if the result is ambiguous.
"""
try:
return validate_email_or_fail(email_address, **kwargs)
except SMTPTemporaryError as error:
LOGGER.info(msg=f'Validation for {email_address!r} ambigious: {error}')
LOGGER.info(msg=f'Validation for {email_address!r} is ambiguous: {error}')
return
except EmailValidationError as error:
LOGGER.info(msg=f'Validation for {email_address!r} failed: {error}')