diff options
| author | vojkovic <git@vojk.au> | 2026-09-03 14:19:54 +0000 |
|---|---|---|
| committer | Brock Vojkovic <brock@vojk.au> | 2026-09-04 16:16:09 +0800 |
| commit | be836e614a2f2e7512e2e1915a0bc37d51ee865c (patch) | |
| tree | d08d26492eb1746d2c4b4f03c74dcff4e2a0072e /searx/data | |
| parent | 15b0c8ef3ab02a86131040e5eabc0d5b82bb9470 (diff) | |
[mod] network: migrate to curl_cffi
Diffstat (limited to 'searx/data')
| -rw-r--r-- | searx/data/tracker_patterns.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/data/tracker_patterns.py b/searx/data/tracker_patterns.py index 900f7e84c..0802fa995 100644 --- a/searx/data/tracker_patterns.py +++ b/searx/data/tracker_patterns.py @@ -10,7 +10,7 @@ import re from collections.abc import Iterator from urllib.parse import urlparse, urlunparse, parse_qsl, urlencode -from httpx import HTTPError +from curl_cffi.requests.exceptions import RequestException from searx.data.core import get_cache, log from searx.network import get as http_get @@ -87,8 +87,8 @@ class TrackerPatternsDB: try: resp = http_get(url, timeout=3) - except HTTPError as exc: - log.warning("TRACKER_PATTERNS: HTTPError (%s) occured while fetching %s", url, exc) + except RequestException as exc: + log.warning("TRACKER_PATTERNS: RequestException while fetching %s: %s", url, exc) continue if resp.status_code != 200: |
