forked from platypush/platypush
FIX: More robust logic against section configurations that may not be maps
This commit is contained in:
parent
a675fe6a92
commit
db45d7ecbf
1 changed files with 3 additions and 1 deletions
|
@ -215,7 +215,9 @@ class Config:
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
section_config = file_config.get(section, {}) or {}
|
section_config = file_config.get(section, {}) or {}
|
||||||
if not section_config.get('disabled'):
|
if not (
|
||||||
|
hasattr(section_config, 'get') and section_config.get('disabled')
|
||||||
|
):
|
||||||
config[section] = section_config
|
config[section] = section_config
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|
Loading…
Reference in a new issue