From 71966bcef080045eb2f591c4a77e10cf600a02d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hauke=20Z=C3=BChl?= Date: Mon, 23 Sep 2024 17:59:38 +0200 Subject: [PATCH] =?UTF-8?q?safe=5Fload=20f=C3=BCr=20Konfigdatei?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/muell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/muell.py b/python/muell.py index 1a5c539..b670917 100644 --- a/python/muell.py +++ b/python/muell.py @@ -45,7 +45,7 @@ def readConfig(): home = Path.home() # home ist ohne / am Ende! config = {} with open(f'{home}/.muell.yaml', 'r') as config_file: - config = yaml.load(config_file) + config = yaml.safe_load(config_file) return config