Skip to content

Commit 4c67559

Browse files
committed
Fixed using bundled certs on supported OS.
This would have failed in the case where an OS is supported, but the certs weren't available.
1 parent 7319f33 commit 4c67559

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github2/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
elif path.exists(getenv('CURL_CA_BUNDLE', '')):
5757
CA_CERTS = getenv('CURL_CA_BUNDLE')
5858
CURL_CERTS = True
59-
else:
59+
if not SYSTEM_CERTS and not CURL_CERTS:
6060
CA_CERTS = path.join(path.dirname(path.abspath(__file__)),
6161
"DigiCert_High_Assurance_EV_Root_CA.crt")
6262

0 commit comments

Comments
 (0)