Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correction: "SpamError"
  • Loading branch information
neonene authored May 22, 2025
commit a83e26624e303cf2c0e3e32f69258f9f03894618
2 changes: 1 addition & 1 deletion Doc/extending/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ with an exception object::
spam_module_exec(PyObject *m)
{
SpamError = PyErr_NewException("spam.error", NULL, NULL);
if (PyModule_AddObjectRef(m, "error", SpamError) < 0) {
if (PyModule_AddObjectRef(m, "SpamError", SpamError) < 0) {
return -1;
}

Expand Down
Loading