diff --git a/sanic/app.py b/sanic/app.py index c9b75d8718..c785443613 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -775,13 +775,13 @@ async def handle_exception( if request.stream: response = request.stream.response if isinstance(response, BaseHTTPResponse): - await self.dispatch( - "http.lifecycle.response", - inline=True, - context={ - "request": request, - "response": response, - }, + await self.dispatch( + "http.lifecycle.response", + inline=True, + context={ + "request": request, + "response": response, + }, ) await response.send(end_stream=True) else: diff --git a/sanic/errorpages.py b/sanic/errorpages.py index d046c29d07..4ef59390b6 100644 --- a/sanic/errorpages.py +++ b/sanic/errorpages.py @@ -383,7 +383,6 @@ def exception_response( """ content_type = None - print("exception_response", fallback) if not renderer: # Make sure we have something set renderer = base