Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 60fb2f3

Browse files
Fix build errors.
1 parent ccfd6c4 commit 60fb2f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hyper/tls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def init_context(cert_path=None, cert=None, cert_password=None):
103103
"ensure the default cert.pem file is included in the " +
104104
"distribution or provide a custom certificate when " +
105105
"creating the connection.")
106-
raise MissingCertFile(errMsg)
106+
raise MissingCertFile(err_msg)
107107

108108
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
109109
context.set_default_verify_paths()

test/test_SSLContext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_missing_certs(self):
6666
succeeded = False
6767
threw_expected_exception = False
6868
try:
69-
conn = hyper.tls.init_context(MISSING_PEM_FILE)
69+
hyper.tls.init_context(MISSING_PEM_FILE)
7070
succeeded = True
7171
except hyper.common.exceptions.MissingCertFile:
7272
threw_expected_exception = True

0 commit comments

Comments
 (0)