mirror of
https://github.com/QingdaoU/Judger.git
synced 2025-01-16 01:13:25 +00:00
update judger exception name
This commit is contained in:
parent
b3b89fbf02
commit
274712bcf8
4
judger.c
4
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("judger.error", NULL, NULL);
|
||||
error = PyErr_NewException("JudgerError", NULL, NULL);
|
||||
Py_INCREF(error);
|
||||
PyModule_AddObject(module, "error", error);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user