summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py
index e6ca93f..ea4a6e5 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -169,7 +169,8 @@ class Redis(threading.local):
'LPUSH RPUSH',
lambda r: isinstance(r, int) and r or r == 'OK'
),
- string_keys_to_dict('ZSCORE ZINCRBY', float),
+ string_keys_to_dict('ZSCORE ZINCRBY',
+ lambda r: r is not None and float(r) or r),
string_keys_to_dict(
'FLUSHALL FLUSHDB LSET LTRIM MSET RENAME '
'SAVE SELECT SET SHUTDOWN',