From 9c75ad3de1d08b2dc9f50c74e8a1b89f7ac628b7 Mon Sep 17 00:00:00 2001 From: Julien00859 Date: Wed, 21 Feb 2018 00:50:27 +0100 Subject: [PATCH] close #1136 --- sanic/handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanic/handlers.py b/sanic/handlers.py index 9afcfb94..81dd38d7 100644 --- a/sanic/handlers.py +++ b/sanic/handlers.py @@ -79,9 +79,9 @@ class ErrorHandler: response = None try: if handler: - response = handler(request=request, exception=exception) + response = handler(request, exception) if response is None: - response = self.default(request=request, exception=exception) + response = self.default(request, exception) except Exception: self.log(format_exc()) if self.debug: