summaryrefslogtreecommitdiff
path: root/searx/network/__init__.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-08-07 18:48:01 +0200
committerAlexandre Flament <alex@al-f.net>2021-09-17 10:06:22 +0200
commit8e73438cbed62ca5c16f6d3c6ce7220b17550c4b (patch)
tree9dc334a2d87c66773841053b45420f1c83a719a8 /searx/network/__init__.py
parent602cbc2c99e3ea0c4213473c346b871326152788 (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__.py2
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