Commit b554e8a8 authored by Adrien Dorsaz's avatar Adrien Dorsaz
Browse files

pylint: raise exception from a catched one

parent 1ea01f58
Pipeline #295 passed with stages
in 17 minutes and 46 seconds
......@@ -262,9 +262,9 @@ def get_crt(config, log=LOGGER):
"IN", "TXT", '"{0}"'.format(keydigest64))
try:
_update_dns(dnsrr_set, "add", resolver)
except dns.exception.DNSException as dnsexception:
except dns.exception.DNSException as exception:
raise ValueError("Error updating DNS records: {0} : {1}"
.format(type(dnsexception).__name__, str(dnsexception)))
.format(type(exception).__name__, str(exception))) from exception
log.info("Wait for 1 TTL (%s seconds) to ensure DNS cache is cleared.",
config["DNS"].getint("TTL"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment