summaryrefslogtreecommitdiff
path: root/redis
diff options
context:
space:
mode:
authorItamar Haber <itamar@redislabs.com>2018-11-13 15:28:08 +0200
committerGitHub <noreply@github.com>2018-11-13 15:28:08 +0200
commit0adcc538ab15d69a839d8240d94461da3c53ece7 (patch)
treec37c557f3d0c40ab689662de53d82947ace42ec8 /redis
parent66ab23ddd70115ffb29012f60a84b5235edcaab2 (diff)
downloadredis-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-xredis/client.py2
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'),