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

Merge pull request #104 from kuba/pylint-errors

Fix some `pylint -E` errors
This commit is contained in:
James Kasten
2014-11-29 21:15:24 -08:00
3 changed files with 6 additions and 5 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

@@ -131,7 +131,7 @@ class Client(object):
# TODO: Handle this exception/problem
if not crypto_util.csr_matches_names(self.csr, self.names):
raise errrors.LetsEncryptClientError(
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."""