From e32559586cdbbd2982d9819684cea650bb427f14 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Tue, 26 Jan 2021 01:29:52 -0600 Subject: [PATCH] Use safe_load I don't need everything from PyYaml for a config file --- tibi_hardlinks/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tibi_hardlinks/config.py b/tibi_hardlinks/config.py index d43a792..8901bab 100644 --- a/tibi_hardlinks/config.py +++ b/tibi_hardlinks/config.py @@ -20,4 +20,4 @@ if not os.path.exists(CONFIG_FILE_PATH): shutil.copy(os.path.join(PACKAGE_ROOT, "config.yml"), CONFIG_FILE_PATH) with open(CONFIG_FILE_PATH, "r") as config_file: - CONFIG_DATA = yaml.load(config_file) + CONFIG_DATA = yaml.safe_load(config_file)