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>
This commit is contained in:
pacnpal
2025-01-28 10:04:06 -05:00
committed by GitHub
parent 930a6af9b0
commit 29b7a3fa8d

View File

@@ -49,7 +49,7 @@ async def health_check() -> Dict:
logger.error(f"Health check failed: {str(e)}") logger.error(f"Health check failed: {str(e)}")
return { return {
"status": "error", "status": "error",
"error": str(e) "error": "An internal error has occurred. Please try again later."
} }
@app.exception_handler(AdGuardError) @app.exception_handler(AdGuardError)