summaryrefslogtreecommitdiff
path: root/searx/plugins/tor_check.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/plugins/tor_check.py')
-rw-r--r--searx/plugins/tor_check.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/plugins/tor_check.py b/searx/plugins/tor_check.py
index a3d6e17a7..5645179b7 100644
--- a/searx/plugins/tor_check.py
+++ b/searx/plugins/tor_check.py
@@ -9,7 +9,7 @@ import typing
import re
from flask_babel import gettext
-from httpx import HTTPError
+from curl_cffi.requests.exceptions import RequestException
from searx.network import get
from searx.plugins import Plugin, PluginInfo
@@ -59,7 +59,7 @@ class SXNGPlugin(Plugin):
resp = get(url_exit_list)
node_list = re.findall(reg, resp.text) # type: ignore
- except HTTPError:
+ except RequestException:
# No answer, return error
msg = gettext("Could not download the list of Tor exit-nodes from")
results.add(results.types.Answer(answer=f"{msg} {url_exit_list}"))