diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2025-08-01 12:08:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-01 12:08:27 +0200 |
| commit | 664aab0ec90e4cc468bc5907c1756b92db0c2532 (patch) | |
| tree | c7fce59bd98cb76fcf55d61d961080a93caacad8 /searx/engines | |
| parent | dcb1e200074cff02a1ccbb44da1c98a426c56bc7 (diff) | |
[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
Diffstat (limited to 'searx/engines')
| -rw-r--r-- | searx/engines/zlibrary.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/zlibrary.py b/searx/engines/zlibrary.py index 6357232af..367fec6ee 100644 --- a/searx/engines/zlibrary.py +++ b/searx/engines/zlibrary.py @@ -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() |