From 1aa8ae85e27482095691a9701487eaf2661531a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20de=20Matteo?= Date: Fri, 13 Jun 2025 21:52:16 -0300 Subject: [PATCH] #21010 --- api/libs/sendgrid.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/libs/sendgrid.py b/api/libs/sendgrid.py index fbb91beeae..630732b0e8 100644 --- a/api/libs/sendgrid.py +++ b/api/libs/sendgrid.py @@ -1,8 +1,9 @@ import logging import sendgrid -from sendgrid.helpers.mail import Mail, Email, To, Content -from python_http_client.exceptions import UnauthorizedError, ForbiddenError +from python_http_client.exceptions import ForbiddenError, UnauthorizedError +from sendgrid.helpers.mail import Content, Email, Mail, To + class SendGridClient: def __init__( @@ -37,7 +38,7 @@ class SendGridClient: logging.exception("SendGridClient Timeout occurred while sending email") raise except (UnauthorizedError, ForbiddenError) as e: - logging.exception("SendGridClient Authentication failed. Verify that your credentials and the 'from' address are correct.") + logging.exception("SendGridClient Authentication failed. Verify that your credentials and the 'from") raise except Exception as e: logging.exception(f"SendGridClient Unexpected error occurred while sending email to {_to}")