mirror of
https://github.com/searxng/searxng.git
synced 2025-12-24 04:30:02 +00:00
Digg correction
Return no result instead of crashing if no result
This commit is contained in:
@@ -44,6 +44,9 @@ def response(resp):
|
||||
|
||||
search_result = loads(resp.text)
|
||||
|
||||
if search_result['html'] == '':
|
||||
return results
|
||||
|
||||
dom = html.fromstring(search_result['html'])
|
||||
|
||||
# parse results
|
||||
|
||||
Reference in New Issue
Block a user