From 063f18121983cb76d7fa740904531870a1bd6cda Mon Sep 17 00:00:00 2001 From: bobloy Date: Thu, 30 Apr 2020 21:17:17 -0400 Subject: [PATCH] conf to config and deprecated yaml load (#85) --- audiotrivia/audiotrivia.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/audiotrivia/audiotrivia.py b/audiotrivia/audiotrivia.py index b5bd1cc..394e1d1 100644 --- a/audiotrivia/audiotrivia.py +++ b/audiotrivia/audiotrivia.py @@ -153,7 +153,8 @@ class AudioTrivia(Trivia): "The trivia list was parsed successfully, however it appears to be empty!" ) return - settings = await self.conf.guild(ctx.guild).all() + + settings = await self.config.guild(ctx.guild).all() audiosettings = await self.audioconf.guild(ctx.guild).all() config = trivia_dict.pop("CONFIG", None) if config and settings["allow_override"]: @@ -201,7 +202,7 @@ class AudioTrivia(Trivia): with path.open(encoding="utf-8") as file: try: - dict_ = yaml.load(file) + dict_ = yaml.load(file, Loader=yaml.SafeLoader) except yaml.error.YAMLError as exc: raise InvalidListError("YAML parsing failed.") from exc else: