diff options
author | Abraham Toriz <awonderfulcode@gmail.com> | 2017-08-10 12:18:38 -0500 |
---|---|---|
committer | Abraham Toriz <awonderfulcode@gmail.com> | 2017-08-10 12:18:38 -0500 |
commit | f5f111ca94a4488cf3d1b060689e654490e8e1ef (patch) | |
tree | c3a645baf387f2f83db2eab9f2c8d79bb3b2c524 /redis/client.py | |
parent | 2e4c35a93aa4b902a3c7c5aabd8f3d9e52718842 (diff) | |
download | redis-py-f5f111ca94a4488cf3d1b060689e654490e8e1ef.tar.gz |
fix problem when using geopos on unexistent hash member
Diffstat (limited to 'redis/client.py')
-rwxr-xr-x | redis/client.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py index 95a3cf3..2e58ff4 100755 --- a/redis/client.py +++ b/redis/client.py @@ -448,7 +448,9 @@ 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, |