From 683421719fb8d4404c8b8e7bca4e9411c2197c08 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 10 Jan 2023 00:39:54 +0100 Subject: [PATCH] configpanel: key 'type' may not exist? --- src/utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/config.py b/src/utils/config.py index 27e4b9509..721da443b 100644 --- a/src/utils/config.py +++ b/src/utils/config.py @@ -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