mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	
							parent
							
								
									76671495b4
								
							
						
					
					
						commit
						f7683173f8
					
				@ -70,7 +70,7 @@ class Config:
 | 
			
		||||
            raise FileNotFoundError(f"Config file path ({path}) was not found")
 | 
			
		||||
        if not path.is_file():
 | 
			
		||||
            raise FileNotFoundError(f"Config file path ({path}) is not to a file.")
 | 
			
		||||
        return cls(**yaml.safe_load(path.read_text(encoding="utf8")))
 | 
			
		||||
        return cls(**yaml.safe_load(path.read_text(encoding="utf8")) or {})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# noinspection PyProtectedMember
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user