mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	Raise correct error
This commit is contained in:
		
							parent
							
								
									848e47669e
								
							
						
					
					
						commit
						e1e73936b1
					
				|  | @ -155,7 +155,7 @@ def get_model_meta(path): | |||
|     meta = read_json(meta_path) | ||||
|     for setting in ['lang', 'name', 'version']: | ||||
|         if setting not in meta: | ||||
|             raise IOError('No %s setting found in model meta.json' % setting) | ||||
|             raise ValueError('No %s setting found in model meta.json' % setting) | ||||
|     return meta | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user