Merge pull request #7 from pacnpal/alert-autofix-1

Potential fix for code scanning alert no. 1: Information exposure through an exception
This commit is contained in:
pacnpal
2025-01-28 10:09:22 -05:00
committed by GitHub

View File

@@ -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)