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: break Discord typing loop on persistent HTTP failure
Nikolas de Hor4303026e0da5
diff --git a/nanobot/channels/discord.py b/nanobot/channels/discord.pyindex 1d2d7a64d..b9227fb99 100644--- a/nanobot/channels/discord.py+++ b/nanobot/channels/discord.py@@ -285,8 +285,11 @@ class DiscordChannel(BaseChannel):while self._running:try:await self._http.post(url, headers=headers)- except Exception:- pass+ except asyncio.CancelledError:+ return+ except Exception as e:+ logger.debug("Discord typing indicator failed for {}: {}", channel_id, e)+ returnawait asyncio.sleep(8)self._typing_tasks[channel_id] = asyncio.create_task(typing_loop())