fix
This commit is contained in:
parent
8df147fd08
commit
ddb82c4269
@ -54,6 +54,8 @@ class DatabaseConfig(BaseConfig):
|
|||||||
config._reload_maybe()
|
config._reload_maybe()
|
||||||
try:
|
try:
|
||||||
settings = yaml.load(config.vk_auth)
|
settings = yaml.load(config.vk_auth)
|
||||||
|
if not settings:
|
||||||
|
settings = {}
|
||||||
except (ParserError, AttributeError):
|
except (ParserError, AttributeError):
|
||||||
settings = {}
|
settings = {}
|
||||||
settings.setdefault(self.section_name, {})
|
settings.setdefault(self.section_name, {})
|
||||||
|
Loading…
Reference in New Issue
Block a user