Skip to content

Catch SSL Verification Error #4

@cowreth

Description

@cowreth

Not a very important one but I wanted to report a bug and use this issue to also give you warm kuddos about this work !

Traceback (most recent call last):
  File "mapper.py", line 373, in LocationName
    location = geolocator.geocode(location)
  File "/Users/cowreth/Devs/BackpackingMapper/venv/lib/python3.7/site-packages/geopy/geocoders/osm.py", line 309, in geocode
    self._call_geocoder(url, timeout=timeout), exactly_one
  File "/Users/cowreth/Devs/BackpackingMapper/venv/lib/python3.7/site-packages/geopy/geocoders/base.py", line 375, in _call_geocoder
    raise GeocoderServiceError(message)
geopy.exc.GeocoderServiceError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)

This exception is not catched, and make the whole command fail with many nested exceptions.

Quick Bugfix : go away from my office's proxy ;)

If I find time I'll try to make a PR. I know you're short on time too, so don't feel bad if you have no time for this one ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions