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
019d207c2f
commit
a97b282d97
2 changed files with 7 additions and 5 deletions
|
@ -70,7 +70,9 @@ def _dyndns_available(domain):
|
||||||
logger.debug(f"Checking if domain {domain} is available on {DYNDNS_PROVIDER} ...")
|
logger.debug(f"Checking if domain {domain} is available on {DYNDNS_PROVIDER} ...")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
r = download_json(f"https://{DYNDNS_PROVIDER}/test/{domain}", expected_status_code=None)
|
r = download_json(
|
||||||
|
f"https://{DYNDNS_PROVIDER}/test/{domain}", expected_status_code=None
|
||||||
|
)
|
||||||
except MoulinetteError as e:
|
except MoulinetteError as e:
|
||||||
logger.error(str(e))
|
logger.error(str(e))
|
||||||
raise YunohostError(
|
raise YunohostError(
|
||||||
|
@ -81,9 +83,7 @@ def _dyndns_available(domain):
|
||||||
|
|
||||||
|
|
||||||
@is_unit_operation()
|
@is_unit_operation()
|
||||||
def dyndns_subscribe(
|
def dyndns_subscribe(operation_logger, domain=None, key=None):
|
||||||
operation_logger, domain=None, key=None
|
|
||||||
):
|
|
||||||
"""
|
"""
|
||||||
Subscribe to a DynDNS service
|
Subscribe to a DynDNS service
|
||||||
|
|
||||||
|
|
|
@ -248,7 +248,9 @@ def tools_postinstall(
|
||||||
# and inform the user that we could not contact the dyndns host server.
|
# and inform the user that we could not contact the dyndns host server.
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
m18n.n("dyndns_provider_unreachable", provider="dyndns.yunohost.org")
|
m18n.n(
|
||||||
|
"dyndns_provider_unreachable", provider="dyndns.yunohost.org"
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if available:
|
if available:
|
||||||
|
|
Loading…
Add table
Reference in a new issue