SF #1669182, 2.5 was already fixed. Just assert in 2.6 since string exceptions

are gone.
This commit is contained in:
Neal Norwitz 2007-02-26 23:48:27 +00:00
parent f2ae27e61a
commit f83b751f4b
1 changed files with 3 additions and 2 deletions

View File

@ -590,8 +590,9 @@ PyErr_WriteUnraisable(PyObject *obj)
PyFile_WriteString("Exception ", f);
if (t) {
PyObject* moduleName;
char* className = PyExceptionClass_Name(t);
char* className;
assert(PyExceptionClass_Check(t));
className = PyExceptionClass_Name(t);
if (className != NULL) {
char *dot = strrchr(className, '.');
if (dot != NULL)