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