Skip to content

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

Fix: Remove unnecessary await from _verified_api_keys

BurnyCoder02f2863fed7e
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 612c98dc1..692612e3c 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -767,7 +767,7 @@ class Agent(Generic[Context]):
signal_handler.register()
# Start non-blocking LLM connection verification
- assert await self.llm._verified_api_keys, 'Failed to verify LLM API keys'
+ assert self.llm._verified_api_keys, 'Failed to verify LLM API keys'
try:
self._log_agent_run()