Browse Source

safe_load für Konfigdatei

master
Hauke Zühl 2 weeks ago
parent
commit
71966bcef0
Signed by: hauke
GPG Key ID: 7E70BF5E52D4CA72
  1. 2
      python/muell.py

2
python/muell.py

@ -45,7 +45,7 @@ def readConfig():
home = Path.home() # home ist ohne / am Ende! home = Path.home() # home ist ohne / am Ende!
config = {} config = {}
with open(f'{home}/.muell.yaml', 'r') as config_file: with open(f'{home}/.muell.yaml', 'r') as config_file:
config = yaml.load(config_file) config = yaml.safe_load(config_file)
return config return config

Loading…
Cancel
Save