SF #1669182, 2.5 was already fixed. Just assert in 2.6 since string exceptions
are gone.
This commit is contained in:
parent
f2ae27e61a
commit
f83b751f4b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue