From 36e34d5fcfee95150f7492fd400a5a808a052b1d Mon Sep 17 00:00:00 2001 From: Kumi Date: Wed, 29 Nov 2023 08:33:41 +0100 Subject: [PATCH] Removed traceback print from exception handling in bot's tool call Eliminated the printing of traceback in the exception handling block when the GPTBot encounters an error calling a tool. This change cleans up the logs by removing a redundant error output since relevant information is already being logged. The update aims to enhance the clarity and readability of the logs in case of tool calling errors. --- src/gptbot/classes/bot.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gptbot/classes/bot.py b/src/gptbot/classes/bot.py index a6cc6c4..fcab089 100644 --- a/src/gptbot/classes/bot.py +++ b/src/gptbot/classes/bot.py @@ -376,7 +376,6 @@ class GPTBot: except Exception as e: self.logger.log(f"Error calling tool {tool}: {e}", "error") - traceback.print_exc() return f"Error: Something went wrong calling tool {tool}" async def process_command(self, room: MatrixRoom, event: RoomMessageText):