From c2ff40af99119df00a7525373efd1c4bfaac2f43 Mon Sep 17 00:00:00 2001 From: virusdefender Date: Wed, 20 Jan 2016 15:27:12 +0800 Subject: [PATCH] fix error exception name which casued segment fault --- judger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judger.c b/judger.c index 5dc70ef..6a10001 100644 --- a/judger.c +++ b/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); }