mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[CI] Format code with Black
This commit is contained in:
parent
a61d023198
commit
57081f4433
1 changed files with 7 additions and 3 deletions
|
@ -260,12 +260,16 @@ def dyndns_update(
|
||||||
ok, result = dig(dyn_host, "A")
|
ok, result = dig(dyn_host, "A")
|
||||||
dyn_host_ipv4 = result[0] if ok == "ok" and len(result) else None
|
dyn_host_ipv4 = result[0] if ok == "ok" and len(result) else None
|
||||||
if not dyn_host_ipv4:
|
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")
|
ok, result = dig(dyn_host, "AAAA")
|
||||||
dyn_host_ipv6 = result[0] if ok == "ok" and len(result) else None
|
dyn_host_ipv6 = result[0] if ok == "ok" and len(result) else None
|
||||||
if not dyn_host_ipv6:
|
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])
|
ok, result = dig(domain, rdtype, resolvers=[dyn_host_ipv4, dyn_host_ipv6])
|
||||||
if ok == "ok":
|
if ok == "ok":
|
||||||
|
|
Loading…
Add table
Reference in a new issue