Skip to content

Commit

Permalink
Fix #2422: Correct error middleware example
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Oct 27, 2017
1 parent 75daae4 commit b526a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/web.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b526a6d

Please sign in to comment.