diff --git a/src/domain.py b/src/domain.py index dc67806a6..d24f44ddd 100644 --- a/src/domain.py +++ b/src/domain.py @@ -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 { diff --git a/src/tools.py b/src/tools.py index add1451b1..ba58b5bff 100644 --- a/src/tools.py +++ b/src/tools.py @@ -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: