fix vk api config loader
This commit is contained in:
parent
8ad4f95809
commit
a7b73ec050
@ -53,7 +53,7 @@ class DatabaseConfig(BaseConfig):
|
|||||||
def load(self, **kwargs):
|
def load(self, **kwargs):
|
||||||
config._reload_maybe()
|
config._reload_maybe()
|
||||||
try:
|
try:
|
||||||
settings = yaml.load(config.vk_auth)
|
settings = yaml.load(config.vk_auth, yaml.Loader)
|
||||||
if not settings:
|
if not settings:
|
||||||
settings = {}
|
settings = {}
|
||||||
except (ParserError, AttributeError):
|
except (ParserError, AttributeError):
|
||||||
|
Loading…
Reference in New Issue
Block a user