Skip to content

Fix separate routine/exception handling to ensure that GeoPy does not crash the thing #14

Description

@jinjirosan

Multiple times GeoPy errors (e.g. no address/location) resulted in total stop of dataflow. So fix exception handling to only affect the GeoPy data.

Error data

Aug 27 14:17:53 stokkezero python[1119]: location=geolocator.reverse(coordinates,timeout=10) ## reverse geocode coordinates
Aug 27 14:17:53 stokkezero python[1119]: File "/usr/local/lib/python2.7/dist-packages/geopy/geocoders/osm.py", line 248, in reverse
Aug 27 14:17:53 stokkezero python[1119]: self._call_geocoder(url, timeout=timeout), exactly_one
Aug 27 14:17:53 stokkezero python[1119]: File "/usr/local/lib/python2.7/dist-packages/geopy/geocoders/base.py", line 171, in ...eocoder
Aug 27 14:17:53 stokkezero python[1119]: raise GeocoderServiceError(message)
Aug 27 14:17:53 stokkezero python[1119]: geopy.exc.GeocoderServiceError: <urlopen error [Errno 97] Address family not support...otocol>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions