From ee4cf6e3ee1af19e9364a8c104bfa262cdc65ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E6=99=93=E7=A3=8A?= Date: Fri, 12 Aug 2016 17:23:53 +0800 Subject: [PATCH] fix get_redis_from_config() --- rq/cli/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/cli/helpers.py b/rq/cli/helpers.py index 340233d..da7ce7f 100644 --- a/rq/cli/helpers.py +++ b/rq/cli/helpers.py @@ -26,7 +26,7 @@ def read_config_file(module): if k.upper() == k]) -def get_redis_from_config(settings, connection_class): +def get_redis_from_config(settings, connection_class=StrictRedis): """Returns a StrictRedis instance from a dictionary of settings.""" if settings.get('REDIS_URL') is not None: return connection_class.from_url(settings['REDIS_URL'])