From 506169f312735301c1eb3ca8d10dd715298087b3 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Wed, 26 Jan 2022 06:49:58 +0100 Subject: [PATCH] [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 --- package.json | 2 +- searx/webapp.py | 2 -- 2 files changed, 1 insertion(+), 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: