From ddb82c4269915cbc225133175ebbe3069d7cae2a Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 12 Mar 2021 02:45:10 +0300 Subject: [PATCH] fix --- feeds/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/feeds/utils.py b/feeds/utils.py index 1c87275..6fbd85a 100644 --- a/feeds/utils.py +++ b/feeds/utils.py @@ -54,6 +54,8 @@ class DatabaseConfig(BaseConfig): config._reload_maybe() try: settings = yaml.load(config.vk_auth) + if not settings: + settings = {} except (ParserError, AttributeError): settings = {} settings.setdefault(self.section_name, {})