Skip to content

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

Update browser_use/tools/registry/service.py

Mert Unsalc695bb05e401
diff --git a/browser_use/tools/registry/service.py b/browser_use/tools/registry/service.py
index 000bbc467..3a148a6d8 100644
--- a/browser_use/tools/registry/service.py
+++ b/browser_use/tools/registry/service.py
@@ -380,7 +380,7 @@ class Registry(Generic[Context]):
else:
raise RuntimeError(f'Error executing action {action_name}: {str(e)}') from e
except TimeoutError as e:
- raise RuntimeError(f'Error executing action {action_name} due to timeout.')
+ raise RuntimeError(f'Error executing action {action_name} due to timeout.') from e
except Exception as e:
raise RuntimeError(f'Error executing action {action_name}: {str(e)}') from e