diff options
Diffstat (limited to 'utils/searxng_check.py')
| -rw-r--r-- | utils/searxng_check.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/searxng_check.py b/utils/searxng_check.py index afd0c4056..39e774340 100644 --- a/utils/searxng_check.py +++ b/utils/searxng_check.py @@ -25,3 +25,10 @@ if os.path.isfile(OLD_SETTING): os.environ.get('SEARXNG_SETTINGS_PATH', '/etc/searxng/settings.yml') )) warnings.warn(msg, DeprecationWarning) + +from searx.shared import redisdb +from searx import get_setting + +if not redisdb.init(): + warnings.warn("can't connect to redis DB at: %s" % get_setting('redis.url'), RuntimeWarning, stacklevel=2) + warnings.warn("--> no bot protection without redis DB", RuntimeWarning, stacklevel=2) |