We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae631f7 commit 88d8beeCopy full SHA for 88d8bee
Modules/cdmodule.c
@@ -854,7 +854,7 @@ initcd()
854
m = Py_InitModule("cd", CD_methods);
855
d = PyModule_GetDict(m);
856
857
- CdError = PyString_FromString("cd.error");
+ CdError = PyErr_NewException("cd.error", NULL, NULL);
858
PyDict_SetItemString(d, "error", CdError);
859
860
/* Identifiers for the different types of callbacks from the parser */
0 commit comments