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
8e4ddc00dc
commit
a2f82aba12
2 changed files with 8 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue