From de687fba65e3aa0eb5e95585943dd231f360a792 Mon Sep 17 00:00:00 2001 From: Rootless-Ghost/RG-Nebula <139057350+Rootless-Ghost@users.noreply.github.com> Date: Mon, 13 Apr 2026 10:53:20 -0400 Subject: [PATCH] Potential fix for code scanning alert no. 5: Information exposure through an exception Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index ca25d6c..7be8cda 100644 --- a/app.py +++ b/app.py @@ -239,7 +239,7 @@ def api_validate(): except Exception as exc: logger.error("Validate error: %s", exc, exc_info=True) - return jsonify({"success": False, "error": str(exc)}), 500 + return jsonify({"success": False, "error": "An internal error occurred."}), 500 # ── API: results list ─────────────────────────────────────────────────────────