MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / value_error_handler

Function value_error_handler

methods/letta/server/rest_api/app.py:231–232  ·  view source on GitHub ↗
(request: Request, exc: ValueError)

Source from the content-addressed store, hash-verified

229
230 @app.exception_handler(ValueError)
231 async def value_error_handler(request: Request, exc: ValueError):
232 return JSONResponse(status_code=400, content={"detail": str(exc)})
233
234 @app.exception_handler(LettaAgentNotFoundError)
235 async def agent_not_found_handler(request: Request, exc: LettaAgentNotFoundError):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected