Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Fix error when no result

magmueller497fa19a09ce
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 50c795c6a..cfb22b3fd 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -170,6 +170,8 @@ class Agent:
self._last_result = result
finally:
+ if not result:
+ return
for r in result:
if r.error:
self.telemetry.capture(