safraeli commited on
Commit
ed9466a
·
verified ·
1 Parent(s): a1da76f

Security fix: backend/api/main.py

Browse files
Files changed (1) hide show
  1. backend/api/main.py +1 -1
backend/api/main.py CHANGED
@@ -159,7 +159,7 @@ async def global_exception_handler(request: Request, exc: Exception):
159
  log.error("Unhandled exception on %s %s: %s", request.method, request.url.path, exc, exc_info=True)
160
  return JSONResponse(
161
  status_code=500,
162
- content={"detail": f"Internal server error: {type(exc).__name__}: {exc}"},
163
  )
164
 
165
 
 
159
  log.error("Unhandled exception on %s %s: %s", request.method, request.url.path, exc, exc_info=True)
160
  return JSONResponse(
161
  status_code=500,
162
+ content={"detail": "Internal server error"},
163
  )
164
 
165