[CI] Format code with Black

This commit is contained in:
yunohost-bot 2022-12-06 22:36:37 +00:00
parent 15dd9a6115
commit 186e61903a

View file

@ -656,7 +656,11 @@ class ConfigPanel:
# e.g. apps may write `echo 'value: "foobar"'` in the config file (which is more intuitive that `echo 'current_value: "foobar"'`
# For example hotspot used it...
# See https://github.com/YunoHost/yunohost/pull/1546
if isinstance(value, dict) and "value" in value and "current_value" not in value:
if (
isinstance(value, dict)
and "value" in value
and "current_value" not in value
):
value["current_value"] = value["value"]
# In general, the value is just a simple value.