mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 11:54:50 +00:00 
			
		
		
		
	Fix yet another startup crash when loading the config
This commit is contained in:
		
							parent
							
								
									3cfc679294
								
							
						
					
					
						commit
						d427ec8472
					
				@ -77,6 +77,7 @@ class Config:
 | 
				
			|||||||
# noinspection PyProtectedMember
 | 
					# noinspection PyProtectedMember
 | 
				
			||||||
config_path = Config._Directories.user_configs / Config._Filenames.root_config
 | 
					config_path = Config._Directories.user_configs / Config._Filenames.root_config
 | 
				
			||||||
if not config_path.is_file():
 | 
					if not config_path.is_file():
 | 
				
			||||||
 | 
					    Config._Directories.user_configs.mkdir(parents=True, exist_ok=True)
 | 
				
			||||||
    config_path.write_text("")
 | 
					    config_path.write_text("")
 | 
				
			||||||
config = Config.from_yaml(config_path)
 | 
					config = Config.from_yaml(config_path)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user