MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / general_exception_handler

Function general_exception_handler

camel/runtime/api.py:40–47  ·  view source on GitHub ↗
(request: Request, exc: Exception)

Source from the content-addressed store, hash-verified

38
39@app.exception_handler(Exception)
40async def general_exception_handler(request: Request, exc: Exception):
41 return JSONResponse(
42 status_code=500,
43 content={
44 "detail": "Internal Server Error",
45 "error_message": str(exc),
46 },
47 )
48
49
50for module_function in modules_functions:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected