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

[CI] Format code with Black
This commit is contained in:
Alexandre Aubin 2022-10-27 18:08:24 +02:00 committed by GitHub
commit 6c40b0cc9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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: