Skip to content

Commit

Permalink
Merge pull request #877 from twz915/patch-1
Browse files Browse the repository at this point in the history
change the error order of geo point
  • Loading branch information
andymccurdy committed Jul 31, 2017
2 parents fd84f83 + 6483298 commit 2556d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2114,7 +2114,7 @@ def geoadd(self, name, *values):
the triad longitude, latitude and name.
"""
if len(values) % 3 != 0:
raise RedisError("GEOADD requires places with lat, lon and name"
raise RedisError("GEOADD requires places with lon, lat and name"
" values")
return self.execute_command('GEOADD', name, *values)

Expand Down Expand Up @@ -2143,7 +2143,7 @@ def geopos(self, name, *values):
"""
Return the positions of each item of ``values`` as members of
the specified key identified by the ``name``argument. Each position
is represented by the pairs lat and lon.
is represented by the pairs lon and lat.
"""
return self.execute_command('GEOPOS', name, *values)

Expand Down

0 comments on commit 2556d78

Please sign in to comment.