Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.
Python agentsai-hackingai-penetration-testingai-pentestingai-securityartificial-intelligencebug-bountycode-qualityctf-toolscybersecuritycybersecurity-toolsethical-hackinghackingllm-securityoffensive-securitypenetration-testingpentesting-toolsred-teamingsecuritysecurity-automation
fix(executor): include error type in httpx RequestError messages
0xallam4de4be683f17
diff --git a/strix/tools/executor.py b/strix/tools/executor.pyindex db06477c..eb34b381 100644--- a/strix/tools/executor.py+++ b/strix/tools/executor.py@@ -89,7 +89,8 @@ async def _execute_tool_in_sandbox(tool_name: str, agent_state: Any, **kwargs: Araise RuntimeError("Authentication failed: Invalid or missing sandbox token") from eraise RuntimeError(f"HTTP error calling tool server: {e.response.status_code}") from eexcept httpx.RequestError as e:- raise RuntimeError(f"Request error calling tool server: {e}") from e+ error_type = type(e).__name__+ raise RuntimeError(f"Request error calling tool server: {error_type}") from easync def _execute_tool_locally(tool_name: str, agent_state: Any | None, **kwargs: Any) -> Any: