From 97a4d73e0355f5507c7955f33e21c38c68b46883 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 15 Jul 2023 17:53:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=5F=5Finit=5F=5F.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/__init__.py b/app/modules/__init__.py index 71be4ef8..e164bbef 100644 --- a/app/modules/__init__.py +++ b/app/modules/__init__.py @@ -49,7 +49,7 @@ def checkMessage(channel_type: MessageChannel): else: # 检查消息类型开关 if message.mtype: - switchs = SystemConfigOper().get(SystemConfigKey.NotificationChannels) + switchs = SystemConfigOper().get(SystemConfigKey.NotificationChannels) or [] for switch in switchs: if switch.get("mtype") == message.mtype.value: if channel_type == MessageChannel.Wechat and not switch.get("wechat"):