From e42c0b64f1bcc3500425cda095ef25999a4380a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20de=20Matteo?= Date: Mon, 16 Jun 2025 11:15:04 -0300 Subject: [PATCH] #21010 --- api/extensions/ext_mail.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/extensions/ext_mail.py b/api/extensions/ext_mail.py index 0cfd6195bb..23866761d6 100644 --- a/api/extensions/ext_mail.py +++ b/api/extensions/ext_mail.py @@ -61,8 +61,7 @@ class Mail: raise ValueError("SENDGRID_API_KEY are required for SendGrid mail type") self._client = SendGridClient( - sendgrid_api_key=dify_config.SENDGRID_API_KEY, - _from=dify_config.MAIL_DEFAULT_SEND_FROM or "" + sendgrid_api_key=dify_config.SENDGRID_API_KEY, _from=dify_config.MAIL_DEFAULT_SEND_FROM or "" ) case _: raise ValueError("Unsupported mail type {}".format(mail_type))