From db45d7ecbfe45da1ff5c02a60093deccf33af55e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 31 Aug 2022 01:27:53 +0200 Subject: [PATCH] FIX: More robust logic against section configurations that may not be maps --- platypush/config/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platypush/config/__init__.py b/platypush/config/__init__.py index 481bd2751..428ab9177 100644 --- a/platypush/config/__init__.py +++ b/platypush/config/__init__.py @@ -215,7 +215,9 @@ class Config: ) else: 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 return config