diff --git a/docs/web.rst b/docs/web.rst index a66d9f3c42f..b42104d77ac 100644 --- a/docs/web.rst +++ b/docs/web.rst @@ -1078,7 +1078,7 @@ a JSON REST service:: content_type='application/json') @web.middleware - async def error_middleware(app, handler): + async def error_middleware(request, handler): try: response = await handler(request) if response.status == 404: