diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-08-31 10:51:50 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-08-31 10:51:50 +0200 |
commit | 03e7d423be2e4dfd5abc64633fc06cbbd58acfc4 (patch) | |
tree | 00a48bea7e9d8c46f0fb30e8fa9aba9b5b27d421 /searx/network | |
parent | e856b563dd0af5447d51a7c8c4fae5ea697befc2 (diff) | |
download | searxng-03e7d423be2e4dfd5abc64633fc06cbbd58acfc4.tar.gz searxng-03e7d423be2e4dfd5abc64633fc06cbbd58acfc4.zip |
[pylint] Pylint 2.10 - unused-variable
Pylint 2.10 fixed [1]:
Fixed bug with cell-var-from-loop checker: it no longer has false negatives
when both unused-variable and used-before-assignment are disabled.
[1] https://pylint.pycqa.org/en/latest/whatsnew/2.10.html
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/network')
-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 9e80a30a1..3dc99da48 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 as e: + except httpx.ResponseClosed: # the response was closed pass except (httpx.HTTPError, OSError, h2.exceptions.ProtocolError) as e: |