Merge pull request #1137 from Julien00859/1136

sanic.handlers.ErrorHandler.response handler call was too restrictive
This commit is contained in:
Eli Uriegas 2018-02-21 09:55:52 -06:00 committed by GitHub
commit b8bb77eff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: