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'])