summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-01-26 06:49:58 +0100
committerMartin Fischer <martin@push-f.com>2022-01-27 22:17:16 +0100
commit506169f312735301c1eb3ca8d10dd715298087b3 (patch)
tree0d58f881d64906b7e003964dcf83d67ee974eb32
parentb767752d0cdefb6c5f41350c15fcdb50f34d2bfa (diff)
[pyright] remove no longer needed assertion
The pyright bug[1] for which the assertion was added has been fixed. [1]: https://github.com/microsoft/pyright/issues/2930
-rw-r--r--package.json2
-rwxr-xr-xsearx/webapp.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/package.json b/package.json
index e65e0585..b4c06152 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"dependencies": {
"eslint": "^8.7.0",
- "pyright": "^1.1.212"
+ "pyright": "^1.1.215"
}
}
diff --git a/searx/webapp.py b/searx/webapp.py
index 6bb358d3..2e6e388e 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -1147,8 +1147,6 @@ def image_proxy():
except httpx.HTTPError:
logger.exception('HTTP error on closing')
- assert resp is not None
-
def close_stream():
nonlocal resp, stream
try: