[enh] Avoid to raise error with bin null and empty value

This commit is contained in:
ljf 2021-09-13 01:24:10 +02:00
parent ce34bb75c4
commit 1d704e7b91

View file

@ -281,7 +281,7 @@ class ConfigPanel:
for _, _, option in self._iterate():
if option["id"] not in self.values:
allowed_empty_types = ["alert", "display_text", "markdown", "file"]
if option["type"] in allowed_empty_type or option["bind"] == "null":
if option["type"] in allowed_empty_types or option["bind"] == "null":
continue
else:
raise YunohostError("config_missing_init_value", question=option["id"])