safe_load für Konfigdatei
This commit is contained in:
		
							parent
							
								
									dbcb0a5af7
								
							
						
					
					
						commit
						71966bcef0
					
				@ -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
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user