Skip to content

Commit 88d8bee

Browse files
committed
Oops, forgot one.
1 parent ae631f7 commit 88d8bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/cdmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ initcd()
854854
m = Py_InitModule("cd", CD_methods);
855855
d = PyModule_GetDict(m);
856856

857-
CdError = PyString_FromString("cd.error");
857+
CdError = PyErr_NewException("cd.error", NULL, NULL);
858858
PyDict_SetItemString(d, "error", CdError);
859859

860860
/* Identifiers for the different types of callbacks from the parser */

0 commit comments

Comments
 (0)