From d37ab8d91ce9b0c70f0a2c4ae53de8369f59adfa Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Mon, 18 Nov 2019 21:26:39 -0600 Subject: [PATCH] Update the yaml loading --- utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/config.py b/utils/config.py index 685a33a..08f8ac6 100644 --- a/utils/config.py +++ b/utils/config.py @@ -7,7 +7,7 @@ global_config = {} # Ensure that the required config.yml file actually exists try: with open("config.yml", "r") as f: - global_config = yaml.load(f) + global_config = yaml.safe_load(f) global_config = {k: v for k, v in global_config.items() if v} except FileNotFoundError: print("You have no config file setup! Please use config.yml.sample to setup a valid config file")