mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
[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
This commit is contained in:
parent
b767752d0c
commit
506169f312
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"eslint": "^8.7.0",
|
"eslint": "^8.7.0",
|
||||||
"pyright": "^1.1.212"
|
"pyright": "^1.1.215"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1147,8 +1147,6 @@ def image_proxy():
|
|||||||
except httpx.HTTPError:
|
except httpx.HTTPError:
|
||||||
logger.exception('HTTP error on closing')
|
logger.exception('HTTP error on closing')
|
||||||
|
|
||||||
assert resp is not None
|
|
||||||
|
|
||||||
def close_stream():
|
def close_stream():
|
||||||
nonlocal resp, stream
|
nonlocal resp, stream
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user