mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
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.
This commit is contained in:
parent
a15dfa5ee1
commit
dd0887be18
2 changed files with 19 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue