diff options
author | Martin Fischer <martin@push-f.com> | 2022-01-26 06:49:58 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-01-27 22:17:16 +0100 |
commit | 506169f312735301c1eb3ca8d10dd715298087b3 (patch) | |
tree | 0d58f881d64906b7e003964dcf83d67ee974eb32 | |
parent | b767752d0cdefb6c5f41350c15fcdb50f34d2bfa (diff) | |
download | searxng-506169f312735301c1eb3ca8d10dd715298087b3.tar.gz searxng-506169f312735301c1eb3ca8d10dd715298087b3.zip |
[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.json | 2 | ||||
-rwxr-xr-x | searx/webapp.py | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/package.json b/package.json index e65e0585d..b4c061521 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 6bb358d3c..2e6e388e5 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: |