From 86a02c725a241e066aad9d397579dd2dabe0a112 Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Mon, 8 Jun 2026 23:03:34 +0000 Subject: [PATCH] write agent.py --- agent.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/agent.py b/agent.py index 7a3121c..179313c 100644 --- a/agent.py +++ b/agent.py @@ -351,7 +351,11 @@ class SeleniumbaseWebsiteScraper(A2AAgent[SeleniumbaseWebsiteScraperConfig, NoAu } # Build deep agent planner - planner = self._build_deep_agent(ctx=ctx, creds=creds, system_prompt=system_prompt) + try: + planner = self._build_deep_agent(ctx=ctx, creds=creds, system_prompt=system_prompt) + except Exception as exc: # noqa: BLE001 + warnings.append("planner_unavailable: " + _friendly_error(exc)) + planner = None current_url = start_url current_selectors = selectors or {"title": "title"}