diff options
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 2 |
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])) |