This commit is contained in:
bakatrouble 2021-03-12 02:45:10 +03:00
parent 8df147fd08
commit ddb82c4269

View File

@ -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, {})