diff options
Diffstat (limited to 'Modules/reopmodule.c')
-rw-r--r-- | Modules/reopmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/reopmodule.c b/Modules/reopmodule.c index de5c63d..6c671c8 100644 --- a/Modules/reopmodule.c +++ b/Modules/reopmodule.c @@ -958,7 +958,7 @@ initreop() d = PyModule_GetDict(m); /* Initialize reop.error exception */ - v = ReopError = PyString_FromString("reop.error"); + v = ReopError = PyErr_NewException("reop.error", NULL, NULL); if (v == NULL || PyDict_SetItemString(d, "error", v) != 0) goto finally; @@ -1048,6 +1048,6 @@ initreop() return; finally: - Py_FatalError("can't initialize reop module"); + /* Nothing */; } |