mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
configpanel: key 'type' may not exist?
This commit is contained in:
parent
b37d4baf64
commit
683421719f
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ class ConfigPanel:
|
|||
subnode["name"] = key # legacy
|
||||
subnode.setdefault("optional", raw_infos.get("optional", True))
|
||||
# If this section contains at least one button, it becomes an "action" section
|
||||
if subnode["type"] == "button":
|
||||
if subnode.get("type") == "button":
|
||||
out["is_action_section"] = True
|
||||
out.setdefault(sublevel, []).append(subnode)
|
||||
# Key/value are a property
|
||||
|
|
Loading…
Add table
Reference in a new issue