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 if parameter is None
magmuellerb3bbe45dadf9
diff --git a/browser_use/controller/registry/views.py b/browser_use/controller/registry/views.pyindex 05e07edd1..ebb4c998e 100644--- a/browser_use/controller/registry/views.py+++ b/browser_use/controller/registry/views.py@@ -45,7 +45,7 @@ class ActionModel(BaseModel):if not params:return Nonefor param in params:- if 'index' in param:+ if param is not None and 'index' in param:return param['index']return None