From c3ab49cd903d27905d2da6f70699a55c9a74593e Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 7 Oct 2023 10:53:49 +0200 Subject: [PATCH] [fix] kickass: crash when no results --- searx/engines/kickass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/kickass.py b/searx/engines/kickass.py index 562b83279..bda50179b 100644 --- a/searx/engines/kickass.py +++ b/searx/engines/kickass.py @@ -43,7 +43,7 @@ def response(resp): results = [] dom = html.fromstring(resp.text) - search_res = eval_xpath_list(dom, '//table[contains(@class, "data")]//tr', None) + search_res = eval_xpath_list(dom, '//table[contains(@class, "data")]//tr[descendant::a]', None) if search_res is None: return []