From 17b7f742f06c939aa58039bf52b8a0518f3204ef Mon Sep 17 00:00:00 2001 From: congxu Date: Thu, 1 Jun 2023 15:56:26 +0800 Subject: [PATCH] Update getnews.py --- plugins/plugin_getnews/getnews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/plugin_getnews/getnews.py b/plugins/plugin_getnews/getnews.py index 7c12b5756..cf4d8ccac 100644 --- a/plugins/plugin_getnews/getnews.py +++ b/plugins/plugin_getnews/getnews.py @@ -55,7 +55,7 @@ def on_handle_context(self, e_context: EventContext): e_context['reply'] = reply e_context.action = EventAction.BREAK_PASS # 事件结束,并跳过处理context的默认逻辑 - if content == "请重试" OR re.match(r"。.*", content): + if content == "请重试" or re.match(r"。.*", content): e_context.action = EventAction.BREAK_PASS # 事件结束,并跳过处理context的默认逻辑 if re.search(r"微博|weibo|wb", content) and len(content) <= 5: