From b526a6d615d91806f14b288c03f8e781078565f3 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Fri, 27 Oct 2017 15:46:43 +0300 Subject: [PATCH] Fix #2422: Correct error middleware example --- docs/web.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: