diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2010-03-11 13:53:00 -0800 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2010-03-11 13:53:00 -0800 |
commit | ab3061a64cc9ec1cc0ff135005ee478038077434 (patch) | |
tree | cfb9fe6c92e6ce872e3373c000fa0e276e9c1303 /redis/client.py | |
parent | 7915ef869392808e7a8828dcf768c2b7256d219d (diff) | |
download | redis-py-ab3061a64cc9ec1cc0ff135005ee478038077434.tar.gz |
fixed #15 where zscore previously failed for members of a sorted set that didn't exist.
also made anal cleanup changes removing whitespace before colons!
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 3 |
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', |