The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(telegram): name empty-string transport errors in adapter log lines
liuhao1024ff307aea5e84
diff --git a/plugins/platforms/telegram/adapter.py b/plugins/platforms/telegram/adapter.pyindex 73ef76acf54..071999cef70 100644--- a/plugins/platforms/telegram/adapter.py+++ b/plugins/platforms/telegram/adapter.py@@ -29,7 +29,9 @@ def _redact_telegram_error_text(error: object) -> str:"""Redact secrets from Telegram transport errors before logging or returning them."""text = "" if error is None else str(error)if not text:- return text+ # httpx timeout exceptions (ConnectTimeout, ReadTimeout, ...) stringify to "" — keep the+ # class name so failure lines never log an empty reason (#111211).+ return f"<{type(error).__name__}>" if error is not None else texttry:from agent.redact import redact_sensitive_textreturn redact_sensitive_text(text, force=True)