SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] engine duden - don't raise exception on empty result list
Markus Heiser77a0f338199b
diff --git a/searx/engines/duden.py b/searx/engines/duden.pyindex da4c4f7da..dca566404 100644--- a/searx/engines/duden.py+++ b/searx/engines/duden.py@@ -7,6 +7,7 @@ import refrom urllib.parse import quote, urljoinfrom lxml import htmlfrom searx.utils import extract_text, eval_xpath, eval_xpath_list, eval_xpath_getindex+from searx.network import raise_for_httperror# aboutabout = {@@ -47,6 +48,7 @@ def request(query, params):# after the last page of results, spelling corrections are returned after a HTTP redirect# whatever the page number isparams['soft_max_redirects'] = 1+ params['raise_for_httperror'] = Falsereturn params@@ -56,6 +58,11 @@ def response(resp):'''results = []+ if resp.status_code == 404:+ return results++ raise_for_httperror(resp)+dom = html.fromstring(resp.text)number_of_results_element = eval_xpath_getindex(