test(cron): narrow delivery review to saved-chat routing

This commit is contained in:
Xubin Ren committed 2026-10-17 12:49:03 +08:00
1 parent 8691bdedd5
commit 61db036cee
32 files changed
+140 -774

No files matched your search

+1 -2
View File
@@ -13,7 +13,6 @@ from typing import TYPE_CHECKING, Any, Literal, cast
from pydantic import Field
from nanobot.bus.delivery import ChannelNotReadyError
from nanobot.bus.events import OutboundMessage
from nanobot.bus.outbound_events import ContextCompactionEvent, ProgressEvent
from nanobot.bus.queue import MessageBus
@@ -540,7 +539,7 @@ class DiscordChannel(BaseChannel):
"""Send a message through Discord using discord.py."""
client = self._client
if client is None or not client.is_ready():
raise ChannelNotReadyError("Discord client is not ready")
raise RuntimeError("Discord client is not ready")
is_progress = isinstance(msg.event, ProgressEvent)