Skip to content

Commit

Permalink
Improve implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsajip committed Jul 17, 2023
1 parent ac36501 commit e849976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distlib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ def connect(self):
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
if hasattr(ssl, 'OP_NO_SSLv2'):
context.options |= ssl.OP_NO_SSLv2
if hasattr(self, 'cert_file') and self.cert_file:
if getattr(self, 'cert_file', None):
context.load_cert_chain(self.cert_file, self.key_file)
kwargs = {}
if self.ca_certs:
Expand Down

0 comments on commit e849976

Please sign in to comment.