From 1d97ecdb5617ce8d23ddf890375f73b1d64eb754 Mon Sep 17 00:00:00 2001 From: Austin-Olacsi <138650713+Austin-Olacsi@users.noreply.github.com> Date: Fri, 28 Jun 2024 20:44:30 -0600 Subject: [PATCH] issue found --- searx/engines/yandex.py | 1 + 1 file changed, 1 insertion(+) diff --git a/searx/engines/yandex.py b/searx/engines/yandex.py index 82681870a..2814210c9 100644 --- a/searx/engines/yandex.py +++ b/searx/engines/yandex.py @@ -215,6 +215,7 @@ def response(resp): # sys.stdout = f # print(json_resp) + #the json.loads below sometimes fails. because some keys in the json_resp (especialy the clear_description) may contain unescaped double quotes for example, in which case the json is not valid... json_resp2 = json.loads(json_resp.encode("UTF-8")) # # save to a file