From ede373b8884fc7156108d50ef4a2b80add4bf0cd Mon Sep 17 00:00:00 2001 From: Bluemangoo Date: Sun, 19 Jul 2026 21:44:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E9=80=81=E5=A4=B1=E8=B4=A5=E4=B8=8D?= =?UTF-8?q?=E4=B8=AD=E6=AD=A2=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sync.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sync.py b/sync.py index f952468..2a06494 100644 --- a/sync.py +++ b/sync.py @@ -49,7 +49,10 @@ async def sync(): )) for group in enabled_groups: - await get_bot().send_group_msg(message=message, group_id=group) + try: + await get_bot().send_group_msg(message=message, group_id=group) + except Exception as e: + logger.error(f"发送消息到群组 {group} 失败: {e}") for path in data.card_paths: try: