We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a862743 commit f5d9f48Copy full SHA for f5d9f48
1 file changed
lib/createsend/utils.py
@@ -106,7 +106,7 @@ def connect(self):
106
context = ssl.SSLContext()
107
context.verify_mode = ssl.CERT_REQUIRED
108
context.load_verify_locations(cert_path)
109
- if self.cert_file and self.key_file:
+ if hasattr(self, 'cert_file') and hasattr(self, 'key_file') and self.cert_file and self.key_file:
110
context.load_cert_chain(certfile=self.cert_file, keyfile=self.key_file)
111
self.sock = context.wrap_socket(sock)
112
else:
0 commit comments