Skip to content

Commit cb62694

Browse files
committed
add a few more exceptions
1 parent 937091e commit cb62694

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,13 @@ PyObject * PyExc_ZeroDivisionError = NULL;
7575
PyObject * PyExc_ArithmeticError = NULL;
7676
PyObject * PyExc_StopIteration = NULL;
7777
PyObject * PyExc_BufferError = NULL;
78+
PyObject * PyExc_AssertionError = NULL;
79+
PyObject * PyExc_UnboundLocalError = NULL;
80+
PyObject * PyExc_NotImplementedError = NULL;
7881

7982
void initialize_exceptions() {
8083
PyExc_AttributeError = PY_EXCEPTION("AttributeError");
84+
PyExc_AssertionError = PY_EXCEPTION("AssertionError");
8185
PyExc_BaseException = PY_EXCEPTION("BaseException");
8286
PyExc_BytesWarning = PY_EXCEPTION("BytesWarning");
8387
PyExc_DeprecationWarning = PY_EXCEPTION("DeprecationWarning");
@@ -107,6 +111,8 @@ void initialize_exceptions() {
107111
PyExc_ArithmeticError = PY_EXCEPTION("ArithmeticError");
108112
PyExc_StopIteration = PY_EXCEPTION("StopIteration");
109113
PyExc_BufferError = PY_EXCEPTION("BufferError");
114+
PyExc_UnboundLocalError = PY_EXCEPTION("UnboundLocalError");
115+
PyExc_NotImplementedError = PY_EXCEPTION("NotImplementedError");
110116
}
111117

112118

0 commit comments

Comments
 (0)