Skip to content

Commit bad8597

Browse files
committed
Don't fail on lat's near equator
1 parent 0ec7eba commit bad8597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fingr/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ async def handle_request(reader: asyncio.StreamReader, writer: asyncio.StreamWri
145145
address: str
146146
cached_location: bool
147147
lat, lon, address, cached_location = resolve_location(r, geolocator, user_input)
148-
if not lat:
148+
if lat is None:
149149
if address == "No service":
150150
response += "Error: address service down. You can still use coordinates."
151151
request_status = "service_error"

0 commit comments

Comments
 (0)