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!
 | 
						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…
	
		Reference in New Issue
	
	Block a user