diff options
author | Itamar Haber <itamar@redislabs.com> | 2018-11-13 15:28:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 15:28:08 +0200 |
commit | 0adcc538ab15d69a839d8240d94461da3c53ece7 (patch) | |
tree | c37c557f3d0c40ab689662de53d82947ace42ec8 /redis | |
parent | 66ab23ddd70115ffb29012f60a84b5235edcaab2 (diff) | |
download | redis-py-0adcc538ab15d69a839d8240d94461da3c53ece7.tar.gz |
Normalizes type to lowercase in client_list()
I know @RoeyPrat has a lot on his plate atm so taking some liberty here.
Diffstat (limited to 'redis')
-rwxr-xr-x | redis/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py index f3dcc2c..e1beea1 100755 --- a/redis/client.py +++ b/redis/client.py @@ -795,7 +795,7 @@ class StrictRedis(object): """ "Returns a list of currently connected clients" if _type is not None: - if _type not in ['normal', 'master', 'replica', 'pubsub']: + if str(_type).lower() not in ['normal', 'master', 'replica', 'pubsub']: raise RedisError("CLIENT LIST _type must be one of ('normal'," " 'master', 'replica', 'pubsub')") return self.execute_command('CLIENT LIST', Token.get_token('TYPE'), |