mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix: resend url optional (#1987)
This commit is contained in:
parent
24bdedf802
commit
94626487db
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user