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
Remove collection of unhandled exception error messages from telemetry (#585)
Dominic Whitef554523378c1
diff --git a/strix/interface/main.py b/strix/interface/main.pyindex 4eae0527..25df6188 100644--- a/strix/interface/main.py+++ b/strix/interface/main.py@@ -820,10 +820,10 @@ def main() -> None:asyncio.run(run_tui(args))except KeyboardInterrupt:exit_reason = "interrupted"- except Exception as e:+ except Exception:exit_reason = "error"- posthog.error("unhandled_exception", str(e))- scarf.error("unhandled_exception", str(e))+ posthog.error("unhandled_exception")+ scarf.error("unhandled_exception")raisefinally:report_state = get_global_report_state()diff --git a/strix/telemetry/posthog.py b/strix/telemetry/posthog.pyindex 239e134e..d1a9b460 100644--- a/strix/telemetry/posthog.py+++ b/strix/telemetry/posthog.py@@ -123,8 +123,6 @@ def end(report_state: "ReportState", exit_reason: str = "completed") -> None:)-def error(error_type: str, error_msg: str | None = None) -> None:+def error(error_type: str) -> None:props = {**base_props(), "error_type": error_type}- if error_msg:- props["error_msg"] = error_msg_send("error", props)diff --git a/strix/telemetry/scarf.py b/strix/telemetry/scarf.pyindex 25e38c49..037494bb 100644--- a/strix/telemetry/scarf.py+++ b/strix/telemetry/scarf.py@@ -129,12 +129,10 @@ def end(report_state: ReportState, exit_reason: str = "completed") -> None:)-def error(error_type: str, error_msg: str | None = None) -> None:+def error(error_type: str) -> None:props: dict[str, Any] = {**base_props(),"session": SESSION_ID,"error_type": error_type,}- if error_msg:- props["error_msg"] = error_msg_send("error", props)