Skip to content

Your lightweight open-source personal agent.

refactor(shell): fix syntax error

Eric Yang84a7f8af73eb
diff --git a/nanobot/agent/tools/shell.py b/nanobot/agent/tools/shell.py
index bec189a1c..5b4641297 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"