Skip to content

Commit a83e266

Browse files
authored
Correction: "SpamError"
1 parent 1a65816 commit a83e266

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/extending/extending.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ with an exception object::
217217
spam_module_exec(PyObject *m)
218218
{
219219
SpamError = PyErr_NewException("spam.error", NULL, NULL);
220-
if (PyModule_AddObjectRef(m, "error", SpamError) < 0) {
220+
if (PyModule_AddObjectRef(m, "SpamError", SpamError) < 0) {
221221
return -1;
222222
}
223223

0 commit comments

Comments
 (0)