mirror of
https://github.com/pacnpal/simpleguardhome.git
synced 2025-12-20 12:31:16 -05:00
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:
@@ -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