(request: Request, exc: Exception)
| 20 | ) |
| 21 | |
| 22 | def generic_exception_handler(request: Request, exc: Exception): |
| 23 | logging.error(f"Unhandled error: {exc}") |
| 24 | return JSONResponse( |
| 25 | status_code=HTTP_500_INTERNAL_SERVER_ERROR, |
| 26 | content={"detail": "An internal server error occurred."} |
| 27 | ) |
nothing calls this directly
no outgoing calls
no test coverage detected