bug: fix minor exception msg missing (#21255)

pull/21263/head
NeatGuyCoding 8 months ago committed by GitHub
parent 40e8ad419b
commit d34795fc08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -35,7 +35,10 @@ 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")
logging.exception(
"SendGridClient Authentication failed. "
"Verify that your credentials and the 'from' email address are correct"
)
raise
except Exception as e:
logging.exception(f"SendGridClient Unexpected error occurred while sending email to {_to}")

Loading…
Cancel
Save