mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-29 16:31:42 +00:00
fix error exception name which casued segment fault
This commit is contained in:
parent
90856dc24f
commit
c2ff40af99
2
judger.c
2
judger.c
@ -90,7 +90,7 @@ static PyMethodDef judger_methods[] = {
|
||||
|
||||
PyMODINIT_FUNC initjudger(void) {
|
||||
PyObject *module = Py_InitModule3("judger", judger_methods, NULL);
|
||||
error = PyErr_NewException("JudgerError", NULL, NULL);
|
||||
error = PyErr_NewException("judger.error", NULL, NULL);
|
||||
Py_INCREF(error);
|
||||
PyModule_AddObject(module, "error", error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user