diff --git a/sanic/handlers.py b/sanic/handlers.py index b8c7ded0..ac4c28f1 100644 --- a/sanic/handlers.py +++ b/sanic/handlers.py @@ -79,7 +79,7 @@ class ErrorHandler: response = None try: if handler: - response = handler(req, exception) + response = handler(request, exception) if response is None: response = self.default(request, exception) except Exception: