浏览代码

bug: fix minor exception msg missing (#21255)

tags/1.5.0
NeatGuyCoding 4 个月前
父节点
当前提交
d34795fc08
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      api/libs/sendgrid.py

+ 4
- 1
api/libs/sendgrid.py 查看文件

@@ -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}")

正在加载...
取消
保存