mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[fix] CI task "update_engine_traits.py" fails (#5069)
* [fix] CI task "update_engine_traits.py" fails
To catch all problems with an HTTP request, the more general class
``httpx.HTTPError`` must be caught, for your test use::
$ ./manage dev.env
$ python ./searxng_extra/update/update_engine_traits.py
Closes: https://github.com/searxng/searxng/issues/5068
* [data] update searx.data - update_engine_traits.py
This commit is contained in:
@@ -193,7 +193,7 @@ def fetch_traits(engine_traits: EngineTraits) -> None:
|
||||
|
||||
try:
|
||||
resp = get(base_url, verify=False)
|
||||
except (SearxException, httpx.ConnectError) as exc:
|
||||
except (SearxException, httpx.HTTPError) as exc:
|
||||
print(f"ERROR: zlibrary domain '{base_url}' is seized?")
|
||||
print(f" --> {exc}")
|
||||
_use_old_values()
|
||||
|
||||
Reference in New Issue
Block a user