浏览代码

fix: resend url optional (#1987)

tags/0.4.5
takatost 1年前
父节点
当前提交
94626487db
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3
    4
      api/extensions/ext_mail.py

+ 3
- 4
api/extensions/ext_mail.py 查看文件

@@ -23,10 +23,9 @@ class Mail:
raise ValueError('RESEND_API_KEY is not set')
api_url = app.config.get('RESEND_API_URL')
if not api_url:
raise ValueError('RESEND_API_URL is not set')
resend.api_url = api_url
if api_url:
resend.api_url = api_url

resend.api_key = api_key
self._client = resend.Emails
else:

正在加载...
取消
保存