MCPcopy Create free account
hub / github.com/OpenPipe/ART / art_error_handler

Function art_error_handler

src/art/cli.py:327–328  ·  view source on GitHub ↗
(request: Request, exc: ARTError)

Source from the content-addressed store, hash-verified

325 # Add exception handler for ARTError
326 @app.exception_handler(ARTError)
327 async def art_error_handler(request: Request, exc: ARTError):
328 return JSONResponse(status_code=exc.status_code, content={"detail": exc.detail})
329
330 app.get("/healthcheck")(lambda: {"status": "ok"})
331 app.post("/close")(backend.close)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected