Skip to content

Your lightweight open-source personal agent.

fix(channels/qq): propagate network errors in send() instead of swallowing

bahtyaf879d81b28ce
diff --git a/nanobot/channels/qq.py b/nanobot/channels/qq.py
index 96d9d5ecd..f109f6da6 100644
--- a/nanobot/channels/qq.py
+++ b/nanobot/channels/qq.py
@@ -280,6 +280,9 @@ class QQChannel(BaseChannel):
msg_id=msg_id,
content=msg.content.strip(),
)
+ except (aiohttp.ClientError, OSError):
+ # Network / transport errors — propagate so ChannelManager can retry
+ raise
except Exception:
logger.exception("Error sending QQ message to chat_id={}", msg.chat_id)