diff options
author | Bnyro <bnyro@tutanota.com> | 2023-10-07 10:53:49 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-10-07 11:48:23 +0200 |
commit | c3ab49cd903d27905d2da6f70699a55c9a74593e (patch) | |
tree | 5dab73a3aec4313f687e5d4ee26c1a264b1cc7fd | |
parent | f22daf8b478c287962e0864d813e88195567ab4e (diff) | |
download | searxng-c3ab49cd903d27905d2da6f70699a55c9a74593e.tar.gz searxng-c3ab49cd903d27905d2da6f70699a55c9a74593e.zip |
[fix] kickass: crash when no results
-rw-r--r-- | searx/engines/kickass.py | 2 |
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 [] |