mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Improve CLI error handling [ci skip]
This commit is contained in:
		
							parent
							
								
									d7ad65a9bb
								
							
						
					
					
						commit
						5c53a76021
					
				| 
						 | 
				
			
			@ -258,8 +258,10 @@ def show_validation_error(
 | 
			
		|||
            )
 | 
			
		||||
            print(f"{COMMAND} init fill-config {config_path} --base {config_path}\n")
 | 
			
		||||
        sys.exit(1)
 | 
			
		||||
    except InterpolationError as e:
 | 
			
		||||
        msg.fail("Config validation error", e, exits=1)
 | 
			
		||||
    except Exception as e:
 | 
			
		||||
        msg.fail("Error while loading the config")
 | 
			
		||||
        print(e)
 | 
			
		||||
        sys.exit(1)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def import_code(code_path: Optional[Union[Path, str]]) -> None:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user