Skip to content

Commit

Permalink
fix: make the validator even more defensive to avoid any internal errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-mih committed Nov 28, 2024
1 parent 65e1493 commit df08716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/email-validator/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6149,7 +6149,7 @@ async def _validate_using_verify_mail(email: str):
logger.error(response.text)
return False

return not response.json()["disposable"]
return not response.json().get("disposable")


async def is_valid_email(email: str):
Expand Down

0 comments on commit df08716

Please sign in to comment.