summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqingping209 <qiw209@gmail.com>2018-09-30 10:26:23 +0800
committerqingping209 <qiw209@gmail.com>2018-09-30 10:26:23 +0800
commitbc81b7f7e3c11670a2f33ecb5df71f449410bd93 (patch)
tree87a25a694f64dadd5c3175b78eae9a13bb6ac44b
parent0d6c5f28ef87c83df5540abc358252cae3d2060e (diff)
downloadredis-py-bc81b7f7e3c11670a2f33ecb5df71f449410bd93.tar.gz
geodist may return none or float, response handler callback should
be float_or_none
-rwxr-xr-xredis/client.py4
1 files 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',