mirror of
https://github.com/searxng/searxng.git
synced 2026-06-05 09:27:17 +02:00
[enh] data: traits population
Job failing since October 2025. enh: always raise and reuse data fix: brave unknown locale fix: startpage add "brazilian"
This commit is contained in:
committed by
Markus Heiser
parent
a9f3baefe6
commit
2b03a61832
@@ -250,9 +250,10 @@ def fetch_traits(engine_traits: EngineTraits) -> None:
|
||||
engine_traits.custom["ext"] = []
|
||||
engine_traits.custom["sort"] = []
|
||||
|
||||
resp = get(_get_base_url_choice() + "/search")
|
||||
resp = get(_get_base_url_choice() + "/search", timeout=5)
|
||||
if not resp.ok:
|
||||
raise RuntimeError("Response from Anna's search page is not OK.")
|
||||
raise RuntimeError("Response from Anna's Archive is not OK.")
|
||||
|
||||
dom = html.fromstring(resp.text)
|
||||
|
||||
# supported language codes
|
||||
|
||||
Reference in New Issue
Block a user