mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-30 06:45:55 +00:00
refactor(shell): fix syntax error
This commit is contained in:
parent
e2e1c9c276
commit
84a7f8af73
@ -115,7 +115,7 @@ class ExecTool(Tool):
|
|||||||
finally:
|
finally:
|
||||||
try:
|
try:
|
||||||
os.waitpid(process.pid, os.WNOHANG)
|
os.waitpid(process.pid, os.WNOHANG)
|
||||||
except (ProcessLookupError, ChildProcessError):
|
except (ProcessLookupError, ChildProcessError) as e:
|
||||||
logger.debug("Process already reaped or not found: {}", e)
|
logger.debug("Process already reaped or not found: {}", e)
|
||||||
return f"Error: Command timed out after {effective_timeout} seconds"
|
return f"Error: Command timed out after {effective_timeout} seconds"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user