summaryrefslogtreecommitdiff
path: root/Modules/almodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/almodule.c')
-rw-r--r--Modules/almodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/almodule.c b/Modules/almodule.c
index 13c9ebc305..453a41618d 100644
--- a/Modules/almodule.c
+++ b/Modules/almodule.c
@@ -2195,7 +2195,7 @@ inital()
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);
- ErrorObject = PyString_FromString("al.error");
+ ErrorObject = PyErr_NewException("al.error", NULL, NULL);
PyDict_SetItemString(d, "error", ErrorObject);
/* XXXX Add constants here */