From 29b7a3fa8dd18ae035a12937bf5f3a82a17ab453 Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Tue, 28 Jan 2025 10:04:06 -0500 Subject: [PATCH] Potential fix for code scanning alert no. 1: Information exposure through an exception Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/simpleguardhome/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simpleguardhome/main.py b/src/simpleguardhome/main.py index fbc0414..9c393ef 100644 --- a/src/simpleguardhome/main.py +++ b/src/simpleguardhome/main.py @@ -49,7 +49,7 @@ async def health_check() -> Dict: logger.error(f"Health check failed: {str(e)}") return { "status": "error", - "error": str(e) + "error": "An internal error has occurred. Please try again later." } @app.exception_handler(AdGuardError)