mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	Convert to safe load. Also now allows loading everyting pyyaml supports
This commit is contained in:
		
				
					committed by
					
						
						Davis Goglin
					
				
			
			
				
	
			
			
			
						parent
						
							c26c875b61
						
					
				
				
					commit
					5dc676bea7
				
			@@ -27,8 +27,7 @@ class Config(object):
 | 
			
		||||
            )
 | 
			
		||||
 | 
			
		||||
        try:
 | 
			
		||||
            with open(config_path) as f:
 | 
			
		||||
                config = yaml.load(f)
 | 
			
		||||
            config = yaml.safe_load(f)
 | 
			
		||||
        except EnvironmentError as e:
 | 
			
		||||
            raise exceptions.ConfigNotFoundError('Couldn\'t read config at one or more of {config_path}'.format(
 | 
			
		||||
                config_path="\n".join(config_path),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user