mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 15:22:38 -04:00
Merge pull request #104 from kuba/pylint-errors
Fix some `pylint -E` errors
This commit is contained in:
commit
d47a06cfd2
3 changed files with 6 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@ class LetsEncryptClientError(Exception):
|
|||
"""Generic Let's Encrypt client error."""
|
||||
|
||||
|
||||
class LetsEncryptDvsniError(Exception):
|
||||
class LetsEncryptDvsniError(LetsEncryptClientError):
|
||||
"""Let's Encrypt DVSNI error."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue