diff --git a/requests/utils.py b/requests/utils.py index b3d33f4f..fd96d28b 100644 --- a/requests/utils.py +++ b/requests/utils.py @@ -29,7 +29,9 @@ CERTIFI_BUNDLE_PATH = None try: # see if requests's own CA certificate bundle is installed from . import certs - CERTIFI_BUNDLE_PATH = certs.where() + path = certs.where() + if os.path.exists(path): + CERTIFI_BUNDLE_PATH = certs.where() except ImportError: pass