]> granicus.if.org Git - python/commitdiff
Oops, forgot one.
authorGuido van Rossum <guido@python.org>
Wed, 1 Oct 1997 04:43:39 +0000 (04:43 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 1 Oct 1997 04:43:39 +0000 (04:43 +0000)
Modules/cdmodule.c

index 3653a0338e1b92e02a6b9ee579105c6cbe577048..71598d7cd7d15222b074c0902f1b9e660bd56298 100644 (file)
@@ -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 */