diff options
author | Alexandre Flament <alex@al-f.net> | 2021-08-07 18:48:01 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-09-17 10:06:22 +0200 |
commit | 8e73438cbed62ca5c16f6d3c6ce7220b17550c4b (patch) | |
tree | 9dc334a2d87c66773841053b45420f1c83a719a8 /searx/network/__init__.py | |
parent | 602cbc2c99e3ea0c4213473c346b871326152788 (diff) |
[upd] upgrade httpx 0.19.0
adjust searx.network module to the new internal API
see https://github.com/encode/httpx/pull/1522
Diffstat (limited to 'searx/network/__init__.py')
-rw-r--r-- | searx/network/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/network/__init__.py b/searx/network/__init__.py index 21c4c27b..2bc233f4 100644 --- a/searx/network/__init__.py +++ b/searx/network/__init__.py @@ -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 |