From 72d93d280ad3031e1a1e36b4d3a3d12cca3422a3 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Fri, 21 Jun 2024 17:54:30 +0200 Subject: [PATCH] Fix code for Python3. --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.py b/api.py index 2b1f020..2386a48 100644 --- a/api.py +++ b/api.py @@ -19,7 +19,7 @@ authorizations = { } with open('./conf.yml') as conf: - yaml_conf = yaml.load(conf) + yaml_conf = yaml.safe_load(conf) flask_settings = yaml_conf.get("flask_settings") api_key = yaml_conf.get("api_key") if os.environ['FLASK_ENV'] == 'development':