From ae7c811fd15652243920888d46df08aa661ffb1e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 4 Jan 2015 01:22:12 +1100 Subject: [PATCH] * Use Exception instead of StandardError --- spacy/syntax/arc_eager.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/syntax/arc_eager.pyx b/spacy/syntax/arc_eager.pyx index 25790bacd..a15160d61 100644 --- a/spacy/syntax/arc_eager.pyx +++ b/spacy/syntax/arc_eager.pyx @@ -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