From 850ed7eb8fab4a5d0828606607cc6e5f4d49fd5a Mon Sep 17 00:00:00 2001 From: Abhiram V <61599526+Anon-Artist@users.noreply.github.com> Date: Wed, 10 Mar 2021 16:45:54 +0000 Subject: [PATCH] Update funcs.py --- konsave/funcs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/konsave/funcs.py b/konsave/funcs.py index 57249c9..7d7bc07 100644 --- a/konsave/funcs.py +++ b/konsave/funcs.py @@ -85,10 +85,10 @@ def load_config(): default_config_path = resource_filename('konsave', 'conf.yaml') if not os.path.exists(CONFIG_FILE): shutil.copy(default_config_path, CONFIG_FILE) - return yaml.load(resource_stream('konsave', 'conf.yaml'), Loader=yaml.FullLoader)["entries"] + return yaml.load(resource_stream('konsave', 'conf.yaml'), Loader=yaml.SafeLoader)["entries"] with open(CONFIG_FILE) as file: - config = yaml.load(file, Loader=yaml.FullLoader) + config = yaml.load(file, Loader=yaml.SafeLoader) return config["entries"] @@ -350,4 +350,4 @@ def wipe(): shutil.rmtree(PROFILES_DIR) log("Removed all profiles!") else: - log("Aborting...") \ No newline at end of file + log("Aborting...")