From 507048dc453ec15316f05a4c6d72131ab5f859b6 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 12 Apr 2015 07:28:34 +0200 Subject: [PATCH] * Rename StandardError to Exception, for Python 3 compatibility --- spacy/syntax/ner.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/syntax/ner.pyx b/spacy/syntax/ner.pyx index 0a40ed9a8..e8e8ee5da 100644 --- a/spacy/syntax/ner.pyx +++ b/spacy/syntax/ner.pyx @@ -110,7 +110,7 @@ cdef class BiluoPushDown(TransitionSystem): if self.c[i].move == move and self.c[i].label == label: return self.c[i] else: - raise StandardError(name) + raise Exception(name) cdef Transition init_transition(self, int clas, int move, int label) except *: # TODO: Apparent Cython bug here when we try to use the Transition()