From 8f93cc3ce60602f737612e88a569ecc28a53c802 Mon Sep 17 00:00:00 2001 From: Prathamesh Penshanwar <128643250+PRATHAM777P@users.noreply.github.com> Date: Tue, 28 Apr 2026 01:40:12 +0530 Subject: [PATCH] Potential fix for code scanning alert no. 7: 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 b13a13e..02bf747 100644 --- a/app.py +++ b/app.py @@ -191,7 +191,7 @@ def analyze(): except Exception as exc: logger.exception("Analysis pipeline error") - return jsonify({"error": f"Internal error: {exc}"}), 500 + return jsonify({"error": "An internal error occurred"}), 500 finally: if os.path.exists(tmp_path):