mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-08-12 09:56:11 +00:00
fix: stop poll loop immediately when Node.js is not installed
This commit is contained in:
parent
a9554e132f
commit
bc511d221d
1 changed files with 6 additions and 0 deletions
|
|
@ -80,6 +80,12 @@ async def _poll_loop() -> None:
|
|||
consecutive_failures = 0
|
||||
else:
|
||||
consecutive_failures += 1
|
||||
except FileNotFoundError:
|
||||
PrintStyle.error(
|
||||
"WhatsApp: Node.js is not installed. "
|
||||
"Stopping poll loop — install Node.js and re-enable the plugin."
|
||||
)
|
||||
break
|
||||
except Exception as e:
|
||||
consecutive_failures += 1
|
||||
PrintStyle.error(f"WhatsApp bridge start error: {format_error(e)}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue