[fix] Missing name or bad format management

This commit is contained in:
ljf 2021-08-14 14:38:45 +02:00
parent 619b26f73c
commit 596d05ae81

View file

@ -2145,7 +2145,7 @@ def _get_app_config_panel(app_id):
for key, value in panels: for key, value in panels:
panel = { panel = {
"id": key, "id": key,
"name": value["name"], "name": value.get("name", ""),
"sections": [], "sections": [],
} }
@ -2158,7 +2158,7 @@ def _get_app_config_panel(app_id):
for section_key, section_value in sections: for section_key, section_value in sections:
section = { section = {
"id": section_key, "id": section_key,
"name": section_value["name"], "name": section_value.get("name", ""),
"options": [], "options": [],
} }