flake8-related fixes
This commit is contained in:
parent
46dbaf95a6
commit
f0a59fccf8
|
@ -484,13 +484,13 @@ class Sanic:
|
|||
# Response Middleware
|
||||
# -------------------------------------------- #
|
||||
try:
|
||||
response = await self._run_response_middleware(request, response)
|
||||
response = await self._run_response_middleware(request,
|
||||
response)
|
||||
except:
|
||||
log.exception(
|
||||
'Exception occured in one of response middleware handlers'
|
||||
)
|
||||
|
||||
|
||||
# pass the response to the correct callback
|
||||
if isinstance(response, StreamingHTTPResponse):
|
||||
await stream_callback(response)
|
||||
|
|
Loading…
Reference in New Issue
Block a user