From 3447d9871de2d9ce3a080256783c11efced5a0b8 Mon Sep 17 00:00:00 2001 From: -LAN- Date: Fri, 29 Nov 2024 16:10:10 +0800 Subject: [PATCH] fix(ext_mail): Fix type error Signed-off-by: -LAN- --- api/extensions/ext_mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/extensions/ext_mail.py b/api/extensions/ext_mail.py index ab55cfb286f467..10d0ee52fefae3 100644 --- a/api/extensions/ext_mail.py +++ b/api/extensions/ext_mail.py @@ -87,7 +87,7 @@ def send(self, to: str, subject: str, html: str, from_: Optional[str] = None): def is_enabled() -> bool: - return dify_config.MAIL_TYPE + return dify_config.MAIL_TYPE is not None def init_app(app: DifyApp):