projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5087771
)
Only return a path if the cacert.pem file exists.
author
John Peacock
<jpeacock@messagesystems.com>
Wed, 21 Nov 2012 18:41:16 +0000
(13:41 -0500)
committer
John Peacock
<jpeacock@messagesystems.com>
Wed, 21 Nov 2012 18:41:16 +0000
(13:41 -0500)
This will permit the deletion of just that one file in order
to fall back to the [probably more accurate but less consistent]
Distro provided CA certs.
requests/utils.py
patch
|
blob
|
history
diff --git
a/requests/utils.py
b/requests/utils.py
index b3d33f4fbc2dbe9c7591db0fc8fd82a424fda57f..fd96d28b5ed4cd1e8a55d557c0836fcedaf5cd02 100644
(file)
--- 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