Browse Source

[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
Martin Fischer 3 years ago
parent
commit
506169f312
2 changed files with 1 additions and 3 deletions
  1. 1 1
      package.json
  2. 0 2
      searx/webapp.py

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "dependencies": {
     "eslint": "^8.7.0",
-    "pyright": "^1.1.212"
+    "pyright": "^1.1.215"
   }
 }

+ 0 - 2
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: