From 405d5d367f0ae2a39836cb557d8d0eab97b79b42 Mon Sep 17 00:00:00 2001 From: FuQuan233 Date: Fri, 28 Feb 2025 11:28:20 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20use=20logging=20when=20for?= =?UTF-8?q?warding=20messages=20fails?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_llmchat/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nonebot_plugin_llmchat/__init__.py b/nonebot_plugin_llmchat/__init__.py index 9bdaec4..e220485 100644 --- a/nonebot_plugin_llmchat/__init__.py +++ b/nonebot_plugin_llmchat/__init__.py @@ -285,9 +285,7 @@ async def process_messages(group_id: int): ), ) except Exception as e: - await handler.send( - f"合并转发消息发送失败:\n{e!s}\n" + reasoning_content - ) + logger.error(f"合并转发消息发送失败:\n{e!s}\n") assert reply is not None logger.info(