MCPcopy Create free account
hub / github.com/TAMustafa/Local_Chat_RAG / generic_exception_handler

Function generic_exception_handler

backend/app/error_handlers.py:22–27  ·  view source on GitHub ↗
(request: Request, exc: Exception)

Source from the content-addressed store, hash-verified

20 )
21
22def 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 )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected