summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2023-10-07 10:53:49 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-10-07 11:48:23 +0200
commitc3ab49cd903d27905d2da6f70699a55c9a74593e (patch)
tree5dab73a3aec4313f687e5d4ee26c1a264b1cc7fd
parentf22daf8b478c287962e0864d813e88195567ab4e (diff)
downloadsearxng-c3ab49cd903d27905d2da6f70699a55c9a74593e.tar.gz
searxng-c3ab49cd903d27905d2da6f70699a55c9a74593e.zip
[fix] kickass: crash when no results
-rw-r--r--searx/engines/kickass.py2
1 files changed, 1 insertions, 1 deletions
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 []