Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
style: use TimeoutError instead of asyncio.TimeoutError (py3.11+)
MagMueller3aa68384ad42
diff --git a/browser_use/browser/watchdogs/dom_watchdog.py b/browser_use/browser/watchdogs/dom_watchdog.pyindex 6bf0dc67f..62daa0397 100644--- a/browser_use/browser/watchdogs/dom_watchdog.py+++ b/browser_use/browser/watchdogs/dom_watchdog.py@@ -272,7 +272,7 @@ class DOMWatchdog(BaseWatchdog):pending_requests_before_wait = await asyncio.wait_for(self._get_pending_network_requests(), timeout=2.0)if pending_requests_before_wait:self.logger.debug(f'🔍 Found {len(pending_requests_before_wait)} pending requests before stability wait')- except asyncio.TimeoutError:+ except TimeoutError:self.logger.debug('Pending network request check timed out (2s), skipping')except Exception as e:self.logger.debug(f'Failed to get pending requests before wait: {e}')