1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-21 19:01:07 +03:00

Fix some pylint -E errors

This commit is contained in:
Jakub Warmuz
2014-11-30 02:32:28 +01:00
parent a615130b19
commit 24769c2a8a
3 changed files with 7 additions and 6 deletions

View File

@@ -251,7 +251,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
:type vhost: VH
"""
self.assoc[dn] = vh
self.assoc[domain] = vhost
def get_all_names(self):
"""Returns all names found in the Apache Configuration.
@@ -1553,7 +1553,8 @@ LogLevel warn \n\
with open(key_file, 'r') as key_fd:
key_str = key_fd.read()
except IOError:
raise LetsEncryptDvsniError("Unable to load key file: %s" % key)
raise errors.LetsEncryptDvsniError(
"Unable to load key file: %s" % key_file)
self.register_file_creation(True, self.dvsni_get_cert_file(nonce))
@@ -1630,7 +1631,7 @@ def main():
# print name
print config.find_directive(
config.case_i("NameVirtualHost"), config.case_i("holla:443"))
case_i("NameVirtualHost"), case_i("holla:443"))
# for m in config.find_directive("Listen", "443"):
# print "Directive Path:", m, "Value:", config.aug.get(m)

View File

@@ -130,8 +130,8 @@ class Client(object):
_, csr_der = self.get_key_csr_pem()
# TODO: Handle this exception/problem
if not crypto_util.csr_matches_names(self.csr_file, self.names):
raise errrors.LetsEncryptClientError(
if not crypto_util.csr_matches_names(self.csr, self.names):
raise errors.LetsEncryptClientError(
"CSR subject does not contain one of the specified names")
# Perform Challenges

View File

@@ -5,5 +5,5 @@ class LetsEncryptClientError(Exception):
"""Generic Let's Encrypt client error."""
class LetsEncryptDvsniError(Exception):
class LetsEncryptDvsniError(LetsEncryptClientError):
"""Let's Encrypt DVSNI error."""