Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(telegram): log network errors as warnings without stacktrace
flobo35968b408dc02
diff --git a/nanobot/channels/telegram.py b/nanobot/channels/telegram.pyindex feb908657..916b9ba64 100644--- a/nanobot/channels/telegram.py+++ b/nanobot/channels/telegram.py@@ -916,7 +916,12 @@ class TelegramChannel(BaseChannel):async def _on_error(self, update: object, context: ContextTypes.DEFAULT_TYPE) -> None:"""Log polling / handler errors instead of silently swallowing them."""- logger.error("Telegram error: {}", context.error)+ from telegram.error import NetworkError, TimedOut++ if isinstance(context.error, (NetworkError, TimedOut)):+ logger.warning("Telegram network issue: {}", str(context.error))+ else:+ logger.error("Telegram error: {}", context.error)def _get_extension(self,