发送失败不中止。
This commit is contained in:
parent
1663c1945d
commit
ede373b888
5
sync.py
5
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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user