MCPcopy
hub / github.com/sanic-org/sanic / handle_cancel

Function handle_cancel

tests/test_cancellederror.py:12–13  ·  view source on GitHub ↗
(request: Request, exc: CancelledError)

Source from the content-addressed store, hash-verified

10
11 @app.exception(CancelledError)
12 async def handle_cancel(request: Request, exc: CancelledError):
13 return json({"message": exc.args[0]}, status=418)
14
15 _, response = app.test_client.get("/")
16 assert response.status == 418

Callers

nothing calls this directly

Calls 1

jsonFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…