Merge pull request #261 from dalf/upgrade_httpx

[upd] upgrade httpx 0.19.0
This commit is contained in:
Alexandre Flament 2021-09-17 11:48:37 +02:00 committed by GitHub
commit dc74df3a55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 58 additions and 65 deletions

View file

@ -166,7 +166,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