safe_load für Konfigdatei

This commit is contained in:
2024-09-23 17:59:38 +02:00
parent dbcb0a5af7
commit 71966bcef0
+1 -1
View File
@@ -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