refactor(shell): fix syntax error

This commit is contained in:
Eric Yang
2026-03-23 06:06:02 +00:00
committed by Xubin Ren
parent e2e1c9c276
commit 84a7f8af73

View File

@@ -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"