summaryrefslogtreecommitdiff
path: root/searx/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'searx/plugins')
-rw-r--r--searx/plugins/limiter.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/plugins/limiter.py b/searx/plugins/limiter.py
index c6f5d6a0f..c11fd506b 100644
--- a/searx/plugins/limiter.py
+++ b/searx/plugins/limiter.py
@@ -93,9 +93,8 @@ def init(app, settings):
if not settings['server']['limiter']:
return False
- logger.debug("init limiter DB") # pylint: disable=undefined-variable
- if not redisdb.init():
- logger.error("init limiter DB failed!!!") # pylint: disable=undefined-variable
+ if not redisdb.client():
+ logger.error("The limiter requires Redis") # pylint: disable=undefined-variable
return False
app.before_request(pre_request)