Skip to content

Commit df75f35

Browse files
committed
add PyExc_GeneratorExit
1 parent cf179a2 commit df75f35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/com.oracle.graal.python.cext/src/exceptions.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ PyObject * PyExc_UnboundLocalError = NULL;
8282
PyObject * PyExc_NotImplementedError = NULL;
8383
PyObject * PyExc_RecursionError = NULL;
8484
PyObject * PyExc_UnicodeEncodeError = NULL;
85+
PyObject * PyExc_GeneratorExit = NULL;
8586

8687
void initialize_exceptions() {
8788
PyExc_AttributeError = PY_EXCEPTION("AttributeError");
@@ -120,6 +121,7 @@ void initialize_exceptions() {
120121
PyExc_RecursionError = PY_EXCEPTION("RecursionError");
121122
PyExc_NotImplementedError = PY_EXCEPTION("NotImplementedError");
122123
PyExc_UnicodeEncodeError = PY_EXCEPTION("UnicodeEncodeError");
124+
PyExc_GeneratorExit = PY_EXCEPTION("GeneratorExit");
123125
}
124126

125127

0 commit comments

Comments
 (0)