summaryrefslogtreecommitdiff
path: root/searx/autocomplete.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/autocomplete.py')
-rw-r--r--searx/autocomplete.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/searx/autocomplete.py b/searx/autocomplete.py
index 75992a1d8..cf2deb62f 100644
--- a/searx/autocomplete.py
+++ b/searx/autocomplete.py
@@ -20,10 +20,11 @@ from lxml import etree
from json import loads
from urllib.parse import urlencode
-from requests import RequestException
+from httpx import HTTPError
+
from searx import settings
-from searx.poolrequests import get as http_get
+from searx.network import get as http_get
from searx.exceptions import SearxEngineResponseException
@@ -136,5 +137,5 @@ def search_autocomplete(backend_name, query, lang):
try:
return backend(query, lang)
- except (RequestException, SearxEngineResponseException):
+ except (HTTPError, SearxEngineResponseException):
return []