From 8e73438cbed62ca5c16f6d3c6ce7220b17550c4b Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 7 Aug 2021 18:48:01 +0200 Subject: [upd] upgrade httpx 0.19.0 adjust searx.network module to the new internal API see https://github.com/encode/httpx/pull/1522 --- searx/network/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/network/__init__.py') diff --git a/searx/network/__init__.py b/searx/network/__init__.py index 21c4c27b5..2bc233f46 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 -- cgit v1.2.3