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
Bugfix: in case of empty dirname, error raised when trying to create dirs
alex5dbc55bd464d
diff --git a/browser_use/agent/message_manager/utils.py b/browser_use/agent/message_manager/utils.pyindex fb4a2167b..28c13d30d 100644--- a/browser_use/agent/message_manager/utils.py+++ b/browser_use/agent/message_manager/utils.py@@ -91,7 +91,8 @@ def save_conversation(input_messages: list[BaseMessage], response: Any, target:"""Save conversation history to file."""# create folders if not exists- os.makedirs(os.path.dirname(target), exist_ok=True)+ if dirname := os.path.dirname(target):+ os.makedirs(dirname, exist_ok=True)with open(target,