Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Adrien Dorsaz
acme-dns-tiny
Commits
b554e8a8
Commit
b554e8a8
authored
Nov 10, 2020
by
Adrien Dorsaz
Browse files
pylint: raise exception from a catched one
parent
1ea01f58
Pipeline
#295
passed with stages
in 17 minutes and 46 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
acme_dns_tiny.py
View file @
b554e8a8
...
...
@@ -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
dns
exception
:
except
dns
.
exception
.
DNSException
as
exception
:
raise
ValueError
(
"Error updating DNS records: {0} : {1}"
.
format
(
type
(
dns
exception
).
__name__
,
str
(
dns
exception
)))
.
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"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment