mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	Exit with 1 if incompatible models found (see #1714)
This commit is contained in:
		
							parent
							
								
									dacfaa2ca4
								
							
						
					
					
						commit
						2c656f90fb
					
				|  | @ -4,6 +4,7 @@ from __future__ import unicode_literals, print_function | |||
| import requests | ||||
| import pkg_resources | ||||
| from pathlib import Path | ||||
| import sys | ||||
| 
 | ||||
| from ..compat import path2str, locale_escape | ||||
| from ..util import prints, get_data_path, read_json | ||||
|  | @ -62,6 +63,9 @@ def validate(cmd): | |||
|                "them from the data directory. Data path: {}" | ||||
|                .format(path2str(get_data_path()))) | ||||
| 
 | ||||
|     if incompat_models or incompat_links: | ||||
|         sys.exit(1) | ||||
| 
 | ||||
| 
 | ||||
| def get_model_links(compat): | ||||
|     links = {} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user