Skip to content

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

Linter

Magnus Müller889657a27371
diff --git a/browser_use/browser/profile.py b/browser_use/browser/profile.py
index 32777a25a..4fa41b1ad 100644
--- a/browser_use/browser/profile.py
+++ b/browser_use/browser/profile.py
@@ -850,7 +850,7 @@ class BrowserProfile(BrowserConnectArgs, BrowserLaunchPersistentContextArgs, Bro
if not bg_path.exists():
return
- with open(bg_path, 'r', encoding='utf-8') as f:
+ with open(bg_path, encoding='utf-8') as f:
content = f.read()
# Create the whitelisted domains object for JavaScript with proper indentation