mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[fix] kickass: crash when no results
This commit is contained in:
parent
f22daf8b47
commit
c3ab49cd90
@ -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 []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user