Merge pull request #1365 from YunoHost/ci-format-dev

[CI] Format code with Black
This commit is contained in:
Alexandre Aubin 2021-10-19 19:06:37 +02:00 committed by GitHub
commit 82c6760303
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -260,12 +260,16 @@ def dyndns_update(
ok, result = dig(dyn_host, "A")
dyn_host_ipv4 = result[0] if ok == "ok" and len(result) else None
if not dyn_host_ipv4:
raise YunohostError("Failed to resolve IPv4 for %s ?" % dyn_host, raw_msg=True)
raise YunohostError(
"Failed to resolve IPv4 for %s ?" % dyn_host, raw_msg=True
)
ok, result = dig(dyn_host, "AAAA")
dyn_host_ipv6 = result[0] if ok == "ok" and len(result) else None
if not dyn_host_ipv6:
raise YunohostError("Failed to resolve IPv6 for %s ?" % dyn_host, raw_msg=True)
raise YunohostError(
"Failed to resolve IPv6 for %s ?" % dyn_host, raw_msg=True
)
ok, result = dig(domain, rdtype, resolvers=[dyn_host_ipv4, dyn_host_ipv6])
if ok == "ok":