Skip to content

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

chore: linting

reformedot29915de25301
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.py
index 820402da5..33b9f9eab 100644
--- a/browser_use/browser/session.py
+++ b/browser_use/browser/session.py
@@ -859,7 +859,7 @@ class BrowserSession(BaseModel):
try:
await asyncio.wait_for(ready.wait(), timeout=timeout)
self.logger.debug(f'✅ Page ready for {url} (signal: {readiness_reason})')
- except asyncio.TimeoutError:
+ except TimeoutError:
self.logger.warning(f'⚠️ Page readiness timeout ({timeout}s) for {url}, continuing anyway')
async def on_SwitchTabEvent(self, event: SwitchTabEvent) -> TargetID: