fix(channels): retain scheduled results across pre-send outages

This commit is contained in:
Xubin Ren committed 2026-10-17 12:49:03 +08:00
1 parent faf1efaf09
commit 9c1b16b3cc
27 files changed
+568 -51

No files matched your search

+2 -1
View File
@@ -17,6 +17,7 @@ from urllib.parse import unquote, urljoin, urlparse
import httpx
from pydantic import Field
from nanobot.bus.delivery import ChannelNotReadyError
from nanobot.bus.events import OutboundMessage
from nanobot.bus.queue import MessageBus
from nanobot.channels.base import BaseChannel
@@ -742,7 +743,7 @@ class DingTalkChannel(BaseChannel):
return
token = await self._get_access_token()
if not token:
raise RuntimeError("DingTalk access token unavailable")
raise ChannelNotReadyError("DingTalk access token unavailable")
content = msg.content.strip() if msg.content else ""
if content: