Skip to content

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

fix linter

mertunsall3b53e8b49578
diff --git a/browser_use/cli.py b/browser_use/cli.py
index 975ea8f25..17d5199bc 100644
--- a/browser_use/cli.py
+++ b/browser_use/cli.py
@@ -855,8 +855,8 @@ class BrowserUseApp(App):
# Extract original task(s)
original_tasks = []
for msg in message_history:
- if hasattr(msg, 'message') and hasattr(msg.message, 'content'):
- content = msg.message.content
+ if hasattr(msg, 'content'):
+ content = msg.content
if isinstance(content, str) and 'Your ultimate task is:' in content:
task_text = content.split('"""')[1].strip()
original_tasks.append(task_text)