summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2018-11-02 15:48:56 -0700
committerGitHub <noreply@github.com>2018-11-02 15:48:56 -0700
commitcae1484ed1eb0e5b53c0c21ce7c7d3d96b0fb54f (patch)
treef784efa4a6540c34d5ffba87a335abfc6d410912
parent9ecad8437ef39b75ce42bacab880cb6eb8571655 (diff)
parentbc81b7f7e3c11670a2f33ecb5df71f449410bd93 (diff)
downloadredis-py-cae1484ed1eb0e5b53c0c21ce7c7d3d96b0fb54f.tar.gz
Merge pull request #1035 from qingping209/handle-geodist-none-rsp
handle the case where geodist return -1
-rwxr-xr-xredis/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index 160cfb6..a782b2c 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -427,7 +427,7 @@ class StrictRedis(object):
int
),
string_keys_to_dict(
- 'INCRBYFLOAT HINCRBYFLOAT GEODIST',
+ 'INCRBYFLOAT HINCRBYFLOAT',
float
),
string_keys_to_dict(
@@ -436,7 +436,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',