mirror of
https://github.com/pacnpal/simpleguardhome.git
synced 2025-12-20 04:21:13 -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)}")
|
||||
return {
|
||||
"status": "error",
|
||||
"error": str(e)
|
||||
"error": "An internal error has occurred. Please try again later."
|
||||
}
|
||||
|
||||
@app.exception_handler(AdGuardError)
|
||||
|
||||
Reference in New Issue
Block a user