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: replace raise with logger.error + return fail in exception handlers
Vilius Vystartas4d168c571c81
diff --git a/nanobot/channels/matrix.py b/nanobot/channels/matrix.pyindex 28e6197a8..3d9e33c9d 100644--- a/nanobot/channels/matrix.py+++ b/nanobot/channels/matrix.py@@ -458,7 +458,8 @@ class MatrixChannel(BaseChannel):filesize=size_bytes,)except Exception:- raise+ self.logger.error("Matrix media upload failed for %s", filename, exc_info=True)+ return failupload_response = upload_result[0] if isinstance(upload_result, tuple) else upload_resultencryption_info = upload_result[1] if isinstance(upload_result, tuple) and isinstance(upload_result[1], dict) else None@@ -477,7 +478,8 @@ class MatrixChannel(BaseChannel):try:await self._send_room_content(room_id, content)except Exception:- raise+ self.logger.error("Matrix room content send failed for room_id=%s", room_id, exc_info=True)+ return failreturn Noneasync def send(self, msg: OutboundMessage) -> None:@@ -556,7 +558,6 @@ class MatrixChannel(BaseChannel):except Exception:self.logger.error("Stream send/edit failed for chat_id=%s", chat_id, exc_info=True)await self._stop_typing_keepalive(chat_id, clear_typing=True)- raisedef _register_event_callbacks(self) -> None: