Merge pull request #1924 from YunoHost/actions/black

Format Python code with Black
This commit is contained in:
Alexandre Aubin 2024-08-08 20:38:16 +02:00 committed by GitHub
commit c104dc6449
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -482,7 +482,14 @@ def _get_dns_zone_for_domain(domain):
zone = parent_list[-1]
# Adding this otherwise the CI is flooding about those ...
if domain not in ["example.tld", "sub.example.tld", "domain.tld", "sub.domain.tld", "domain_a.dev", "domain_b.dev"]:
if domain not in [
"example.tld",
"sub.example.tld",
"domain.tld",
"sub.domain.tld",
"domain_a.dev",
"domain_b.dev",
]:
logger.warning(
f"Could not identify correctly the dns zone for domain {domain}, returning {zone}"
)