update judger exception name

This commit is contained in:
virusdefender 2016-01-18 14:41:57 +08:00
parent b3b89fbf02
commit 274712bcf8

View File

@ -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);
}
}