Security fix: backend/api/main.py
Browse files- 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":
|
| 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 |
|