Potential fix for code scanning alert no. 397: 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:
Daulet Amirkhanov 2025-10-29 19:19:22 +00:00 committed by GitHub
parent 4977491966
commit 8e4cdf4334
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,8 +92,6 @@ async def log_exceptions_middleware(request: Request, call_next):
return JSONResponse(
status_code=500,
content={
"error": str(exc),
"error_type": type(exc).__name__,
"message": "An internal server error occurred. Please check server logs for details.",
"path": str(request.url.path),
},