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:
parent
4977491966
commit
8e4cdf4334
1 changed files with 0 additions and 2 deletions
|
|
@ -92,8 +92,6 @@ async def log_exceptions_middleware(request: Request, call_next):
|
||||||
return JSONResponse(
|
return JSONResponse(
|
||||||
status_code=500,
|
status_code=500,
|
||||||
content={
|
content={
|
||||||
"error": str(exc),
|
|
||||||
"error_type": type(exc).__name__,
|
|
||||||
"message": "An internal server error occurred. Please check server logs for details.",
|
"message": "An internal server error occurred. Please check server logs for details.",
|
||||||
"path": str(request.url.path),
|
"path": str(request.url.path),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue