From: Guido van Rossum Date: Wed, 1 Oct 1997 04:43:39 +0000 (+0000) Subject: Oops, forgot one. X-Git-Tag: v1.5a4~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88d8beec0a1196fd33332fe18e893dae796dc505;p=python Oops, forgot one. --- diff --git a/Modules/cdmodule.c b/Modules/cdmodule.c index 3653a0338e..71598d7cd7 100644 --- a/Modules/cdmodule.c +++ b/Modules/cdmodule.c @@ -854,7 +854,7 @@ initcd() m = Py_InitModule("cd", CD_methods); d = PyModule_GetDict(m); - CdError = PyString_FromString("cd.error"); + CdError = PyErr_NewException("cd.error", NULL, NULL); PyDict_SetItemString(d, "error", CdError); /* Identifiers for the different types of callbacks from the parser */