SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[hotfix] interim fix to get docker-build of CI without issues
Markus Heiser50c4b58db652
diff --git a/requirements.txt b/requirements.txtindex 0f9c5aa04..20aa4e34c 100644--- a/requirements.txt+++ b/requirements.txt@@ -13,4 +13,3 @@ uvloop==0.16.0httpx-socks[asyncio]==0.7.2langdetect==1.0.9setproctitle==1.2.2-redis==4.1.0diff --git a/searx/shared/redisdb.py b/searx/shared/redisdb.pyindex da71d169c..d6a4dc3bf 100644--- a/searx/shared/redisdb.py+++ b/searx/shared/redisdb.py@@ -20,7 +20,6 @@ A redis DB connect can be tested by::"""import logging-import redisfrom searx import get_settinglogger = logging.getLogger('searx.shared.redis')@@ -29,6 +28,8 @@ _client = Nonedef client():global _client # pylint: disable=global-statement+ import redis # pylint: disable=import-error, import-outside-toplevel+if _client is None:# not thread safe: in the worst case scenario, two or more clients are# initialized only one is kept, the others are garbage collected.@@ -37,6 +38,8 @@ def client():def init():+ import redis # pylint: disable=import-error, import-outside-toplevel+try:c = client()logger.info("connected redis DB --> %s", c.acl_whoami())