Skip to content

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

Update utils.py to fix #1382

Nick Sweeting9aea342b212c
diff --git a/browser_use/utils.py b/browser_use/utils.py
index bd3bad1fb..0e3b537b8 100644
--- a/browser_use/utils.py
+++ b/browser_use/utils.py
@@ -317,4 +317,4 @@ def singleton(cls):
def check_env_variables(keys: list[str], any_or_all=all) -> bool:
"""Check if all required environment variables are set"""
- return any_or_all(os.getenv(key).strip() for key in keys)
+ return any_or_all(os.getenv(key, '').strip() for key in keys)