[upd] upgrade httpx 0.19.0

adjust searx.network module to the new internal API
see https://github.com/encode/httpx/pull/1522
This commit is contained in:
Alexandre Flament 2021-08-07 18:48:01 +02:00
parent 602cbc2c99
commit 8e73438cbe
4 changed files with 53 additions and 53 deletions

View file

@ -172,7 +172,7 @@ async def stream_chunk_to_queue(network, queue, method, url, **kwargs):
async for chunk in response.aiter_raw(65536):
if len(chunk) > 0:
queue.put(chunk)
except httpx.ResponseClosed:
except httpx.StreamClosed:
# the response was queued before the exception.
# the exception was raised on aiter_raw.
# we do nothing here: in the finally block, None will be queued