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
Fix: Check for None in override_system_message
Cursor Agent166ea02173de
diff --git a/browser_use/agent/prompts.py b/browser_use/agent/prompts.pyindex 8c7aa7348..1b0ad76f8 100644--- a/browser_use/agent/prompts.py+++ b/browser_use/agent/prompts.py@@ -28,7 +28,7 @@ class SystemPrompt:self.use_thinking = use_thinkingself.flash_mode = flash_modeprompt = ''- if override_system_message:+ if override_system_message is not None:prompt = override_system_messageelse:self._load_prompt_template()