Skip to content

Commit da78e6b

Browse files
committed
fix(tools): fix web search fail log output
1 parent 311a4b0 commit da78e6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

veadk/tools/builtin_tools/web_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ def web_search(query: str) -> list[str]:
182182
)
183183
try:
184184
results: list = response_body["Result"]["WebResults"]
185-
except Exception as e:
186-
logger.error(f"Web search failed: {e}")
185+
except Exception as _:
186+
logger.error(f"Web search failed, response body: {response_body}")
187187
return []
188188

189189
final_results = []

0 commit comments

Comments
 (0)