mirror of
https://github.com/pacnpal/simpleguardhome.git
synced 2025-12-22 21:41:19 -05:00
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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user