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 61db036cee
commit 508cedff31
31 files changed
+768 -61

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: