diff options
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 |