From 84a7f8af73ebdb2ed9e9f6f91ae980939df15a89 Mon Sep 17 00:00:00 2001 From: Eric Yang Date: Mon, 23 Mar 2026 06:06:02 +0000 Subject: [PATCH] refactor(shell): fix syntax error --- nanobot/agent/tools/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanobot/agent/tools/shell.py b/nanobot/agent/tools/shell.py index bec189a..5b46412 100644 --- a/nanobot/agent/tools/shell.py +++ b/nanobot/agent/tools/shell.py @@ -115,7 +115,7 @@ class ExecTool(Tool): finally: try: os.waitpid(process.pid, os.WNOHANG) - except (ProcessLookupError, ChildProcessError): + except (ProcessLookupError, ChildProcessError) as e: logger.debug("Process already reaped or not found: {}", e) return f"Error: Command timed out after {effective_timeout} seconds"