From fac09009de964ba90c58187e235256cfa6c23bec Mon Sep 17 00:00:00 2001 From: alexAubin <4533074+alexAubin@users.noreply.github.com> Date: Tue, 25 Feb 2025 12:02:09 +0000 Subject: [PATCH] :art: Format Python code with Black, and Bash code with Shfmt --- src/tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tools.py b/src/tools.py index 579192456c..237b7cf44a 100644 --- a/src/tools.py +++ b/src/tools.py @@ -305,7 +305,9 @@ def tools_regen_conf( from yunohost.regenconf import regen_conf - if (names == [] or "nftables" in names) and tools_migrations_state()["migrations"].get("0032_firewall_config") not in ["skipped", "done"]: + if (names == [] or "nftables" in names) and tools_migrations_state()[ + "migrations" + ].get("0032_firewall_config") not in ["skipped", "done"]: # Make sure the firewall conf is migrated before running the regenconf, # otherwise the nftable regenconf wont work try: