From bc81b7f7e3c11670a2f33ecb5df71f449410bd93 Mon Sep 17 00:00:00 2001 From: qingping209 Date: Sun, 30 Sep 2018 10:26:23 +0800 Subject: geodist may return none or float, response handler callback should be float_or_none --- redis/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redis/client.py b/redis/client.py index 79e94d0..42881bc 100755 --- a/redis/client.py +++ b/redis/client.py @@ -370,7 +370,7 @@ class StrictRedis(object): int ), string_keys_to_dict( - 'INCRBYFLOAT HINCRBYFLOAT GEODIST', + 'INCRBYFLOAT HINCRBYFLOAT', float ), string_keys_to_dict( @@ -379,7 +379,7 @@ class StrictRedis(object): lambda r: isinstance(r, (long, int)) and r or nativestr(r) == 'OK' ), string_keys_to_dict('SORT', sort_return_tuples), - string_keys_to_dict('ZSCORE ZINCRBY', float_or_none), + string_keys_to_dict('ZSCORE ZINCRBY GEODIST', float_or_none), string_keys_to_dict( 'FLUSHALL FLUSHDB LSET LTRIM MSET PFMERGE RENAME ' 'SAVE SELECT SHUTDOWN SLAVEOF WATCH UNWATCH', -- cgit v1.2.1