summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2017-08-14 12:55:58 -0400
committerGitHub <noreply@github.com>2017-08-14 12:55:58 -0400
commitfbd1e46864b3734744ef2aa7bc3ddb93ed91075b (patch)
tree6b5c77ed757d8764372cac5799336d5cde5a5b84 /redis/client.py
parent8a186ebd9cecf466624803bdf215030158c7c776 (diff)
parent61a439793bc8c2f416628c45db128f4d25d25b0c (diff)
downloadredis-py-fbd1e46864b3734744ef2aa7bc3ddb93ed91075b.tar.gz
Merge pull request #888 from categulario/bugfix/geopos-empty-pos
fix problem when using geopos on unexistent hash member
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py
index cf17201..d852998 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -448,7 +448,8 @@ class StrictRedis(object):
'CLUSTER SETSLOT': bool_ok,
'CLUSTER SLAVES': parse_cluster_nodes,
'GEOPOS': lambda r: list(map(lambda ll: (float(ll[0]),
- float(ll[1])), r)),
+ float(ll[1]))
+ if ll is not None else None, r)),
'GEOHASH': lambda r: list(map(nativestr, r)),
'GEORADIUS': parse_georadius_generic,
'GEORADIUSBYMEMBER': parse_georadius_generic,