From cfc75b4f1a979886f6966905b7b414fe7364297c Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Wed, 15 Nov 2017 15:46:39 +0000 Subject: [PATCH] Correct spelling mistakes. --- sanic/app.py | 2 +- tests/test_middleware.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sanic/app.py b/sanic/app.py index ce8857a6..05d99c08 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -580,7 +580,7 @@ class Sanic: response) except BaseException: error_logger.exception( - 'Exception occured in one of response middleware handlers' + 'Exception occurred in one of response middleware handlers' ) # pass the response to the correct callback diff --git a/tests/test_middleware.py b/tests/test_middleware.py index bc1a7eb8..4d4d6901 100644 --- a/tests/test_middleware.py +++ b/tests/test_middleware.py @@ -59,7 +59,7 @@ def test_middleware_response_exception(): result = {'status_code': None} @app.middleware('response') - async def process_response(reqest, response): + async def process_response(request, response): result['status_code'] = response.status return response