From 380b7c57b0d933c92cb61b318e29260efe04791a Mon Sep 17 00:00:00 2001 From: chenwen9 Date: Sun, 12 May 2019 14:08:11 +0800 Subject: [PATCH] Bug fix when use customize client class will not be able to pass the config. --- flask_redis_sentinel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flask_redis_sentinel.py b/flask_redis_sentinel.py index d8d9f7e..f87075c 100644 --- a/flask_redis_sentinel.py +++ b/flask_redis_sentinel.py @@ -156,6 +156,8 @@ def _strip_dict_prefix(orig, prefix): @staticmethod def _config_from_variables(config, the_class): args = inspect.getargspec(the_class.__init__).args + base_args = inspect.getargspec(redis.client.Redis.__init__).args + args.extend(base_args) args.remove('self') args.remove('host') args.remove('port')