tejado / pgoapi

Pokemon Go API lib
Other
1.4k stars 445 forks source link

Fix empty loc returns on get_pos_by_name() #85

Closed wcastello closed 8 years ago

wcastello commented 8 years ago

If geolocator.geocode() doesn’t find a location by name loc is going to be None and this breaks loc.latitude, etc.

tejado commented 8 years ago

Great, thanks a lot. I will also cleanup a little code in the next days, to avoid redundancy.