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: