From dd0887be186d208846cdc7c3df13dde020dfa957 Mon Sep 17 00:00:00 2001 From: Alexandre FLAMENT Date: Fri, 2 Sep 2022 07:33:20 +0000 Subject: xpath engine: change raise_for_httperror to no_result_for_http_status no_result_for_http_status contains a list of HTTP status. These HTTP status are seen an empty result list. In other cases an exception is thrown as usual. Previously raise_for_httperror were ignoring all HTTP error, which make defective engines invisible in the stats. --- searx/settings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/settings.yml') diff --git a/searx/settings.yml b/searx/settings.yml index f83c104fd..5587ed51a 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1808,7 +1808,7 @@ engines: url_xpath: //div[@class="upper-synonyms"]/a/@href content_xpath: //div[@class="synonyms-list-group"] title_xpath: //div[@class="upper-synonyms"]/a - raise_for_httperror: false + no_result_for_http_status: [404] about: website: https://www.woxikon.de/ wikidata_id: # No Wikidata ID -- cgit v1.2.3