Fix a middleware cancellation handling test with py38.
This commit is contained in:
parent
d918655bbb
commit
31a8706b42
|
@ -961,6 +961,10 @@ class Sanic:
|
||||||
response = await self._run_response_middleware(
|
response = await self._run_response_middleware(
|
||||||
request, response, request_name=name
|
request, response, request_name=name
|
||||||
)
|
)
|
||||||
|
except CancelledError:
|
||||||
|
# FIXME: Ensure exiting in a clean manner instead of this
|
||||||
|
# and verify py37 and py38 test_middleware.py separately
|
||||||
|
request.stream.keep_alive = False
|
||||||
except Exception:
|
except Exception:
|
||||||
error_logger.exception(
|
error_logger.exception(
|
||||||
"Exception occurred in one of response "
|
"Exception occurred in one of response "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user