safe_load für Konfigdatei

This commit is contained in:
Hauke Zühl 2024-09-23 17:59:38 +02:00
parent dbcb0a5af7
commit 71966bcef0
Signed by: hauke
GPG Key ID: 7E70BF5E52D4CA72

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