summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorandymccurdy <andy@andymccurdy.com>2010-02-19 00:18:35 -0800
committerandymccurdy <andy@andymccurdy.com>2010-02-19 00:18:35 -0800
commit5f59153a94ed77157747feb2214b82515bf4ca04 (patch)
tree8b53ab281229aa4e452dfaae2c0b0b6bfe8ec304 /redis/client.py
parent88cf4942c78ea1a08bdcffb4f902a682efd7b7f7 (diff)
downloadredis-py-5f59153a94ed77157747feb2214b82515bf4ca04.tar.gz
zrange/zrevrange/zrangebyscore should always return None if the key is insvalid, even if withscores=True is passed
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py
index b7cee2f..590348f 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -138,7 +138,7 @@ def zset_score_pairs(response, **options):
If ``withscores`` is specified in the options, return the response as
a list of (value, score) pairs
"""
- if not options['withscores']:
+ if not response or not options['withscores']:
return response
return zip(response[::2], map(float, response[1::2]))