mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 07:57:35 +03:00 
			
		
		
		
	* Use Exception instead of StandardError
This commit is contained in:
		
							parent
							
								
									33b7b3182a
								
							
						
					
					
						commit
						ae7c811fd1
					
				|  | @ -136,7 +136,7 @@ cdef class TransitionSystem: | |||
|             add_dep(s, s.stack[-1], s.stack[0], get_s0(s).dep_tag) | ||||
|             pop_stack(s) | ||||
|         else: | ||||
|             raise StandardError(t.move) | ||||
|             raise Exception(t.move) | ||||
| 
 | ||||
|     cdef Transition best_valid(self, const weight_t* scores, const State* s) except *: | ||||
|         cdef bint[N_MOVES] valid | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user