From df0871642051be2a014300a1cb292f64b6ee42ed Mon Sep 17 00:00:00 2001 From: adrian <97023582+adrian-mih@users.noreply.github.com> Date: Thu, 28 Nov 2024 23:20:07 +0200 Subject: [PATCH] fix: make the validator even more defensive to avoid any internal errors --- services/email-validator/validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/email-validator/validator.py b/services/email-validator/validator.py index a734077..4b20ad3 100644 --- a/services/email-validator/validator.py +++ b/services/email-validator/validator.py @@ -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):