continue fixing flake8 error
This commit is contained in:
parent
a493bb86f9
commit
c6d9f3683d
16
sanic/app.py
16
sanic/app.py
|
@ -483,10 +483,10 @@ class Sanic:
|
||||||
mounted_request_middleware = handler._request_middleware
|
mounted_request_middleware = handler._request_middleware
|
||||||
if mounted_request_middleware:
|
if mounted_request_middleware:
|
||||||
response = \
|
response = \
|
||||||
await self._handle_mounted_request_middleware(
|
await self._handle_mounted_request_middleware(
|
||||||
mounted_request_middleware, request,
|
mounted_request_middleware, request,
|
||||||
*args, **kwargs
|
*args, **kwargs
|
||||||
)
|
)
|
||||||
# No mounted request middleware result
|
# No mounted request middleware result
|
||||||
if not response:
|
if not response:
|
||||||
# -------------------------------------------- #
|
# -------------------------------------------- #
|
||||||
|
@ -502,10 +502,10 @@ class Sanic:
|
||||||
mounted_response_middleware = handler._response_middleware
|
mounted_response_middleware = handler._response_middleware
|
||||||
if mounted_response_middleware:
|
if mounted_response_middleware:
|
||||||
response = \
|
response = \
|
||||||
await self._handle_mounted_response_middleware(
|
await self._handle_mounted_response_middleware(
|
||||||
mounted_response_middleware, request, response,
|
mounted_response_middleware, request, response,
|
||||||
*args, **kwargs
|
*args, **kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# -------------------------------------------- #
|
# -------------------------------------------- #
|
||||||
|
|
Loading…
Reference in New Issue
Block a user