flake8-related fixes

This commit is contained in:
Dan Kruchinin 2017-04-04 17:19:45 +01:00
parent 46dbaf95a6
commit f0a59fccf8

View File

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