diff options
author | Alexandre Flament <alex@al-f.net> | 2021-09-17 11:48:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 11:48:37 +0200 |
commit | dc74df3a550f48152eb30c0da4837b0de83420e2 (patch) | |
tree | 3f2dd22a72468e5fa0901a0339ae810b1fa28af6 /searx/network/__init__.py | |
parent | 0d9959e649c9625c3264382698b49ec6b99096f0 (diff) | |
parent | 41f6359d06fd6fb93ddfde59cba17da57565f587 (diff) | |
download | searxng-dc74df3a550f48152eb30c0da4837b0de83420e2.tar.gz searxng-dc74df3a550f48152eb30c0da4837b0de83420e2.zip |
Merge pull request #261 from dalf/upgrade_httpx
[upd] upgrade httpx 0.19.0
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 bcc0b690a..260d4f105 100644 --- a/searx/network/__init__.py +++ b/searx/network/__init__.py @@ -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 |