[CI] Format code with Black

This commit is contained in:
yunohost-bot 2022-10-27 16:00:06 +00:00
parent 8e4ddc00dc
commit a2f82aba12
2 changed files with 8 additions and 2 deletions

View file

@ -156,7 +156,11 @@ def domain_info(domain):
settings = _get_app_settings(app)
if settings.get("domain") == domain:
apps.append(
{"name": app_info(app)["name"], "id": app, "path": settings.get("path", "")}
{
"name": app_info(app)["name"],
"id": app,
"path": settings.get("path", ""),
}
)
return {

View file

@ -281,7 +281,9 @@ def tools_regen_conf(
# Make sure the settings are migrated before running the migration,
# which may otherwise fuck things up such as the ssh config ...
# We do this here because the regen-conf is called before the migration in debian/postinst
if os.path.exists("/etc/yunohost/settings.json") and not os.path.exists("/etc/yunohost/settings.yml"):
if os.path.exists("/etc/yunohost/settings.json") and not os.path.exists(
"/etc/yunohost/settings.yml"
):
try:
tools_migrations_run(["0025_global_settings_to_configpanel"])
except Exception as e: