Merge pull request #947 from JohnPeacockMessageSystems/develop

Only return a path if the cacert.pem file exists.
This commit is contained in:
Kenneth Reitz
2012-11-23 02:02:18 -08:00
+3 -1
View File
@@ -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