We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac36501 commit e849976Copy full SHA for e849976
distlib/util.py
@@ -1448,7 +1448,7 @@ def connect(self):
1448
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
1449
if hasattr(ssl, 'OP_NO_SSLv2'):
1450
context.options |= ssl.OP_NO_SSLv2
1451
- if hasattr(self, 'cert_file') and self.cert_file:
+ if getattr(self, 'cert_file', None):
1452
context.load_cert_chain(self.cert_file, self.key_file)
1453
kwargs = {}
1454
if self.ca_certs:
0 commit comments