Commit f83b751f authored by Neal Norwitz's avatar Neal Norwitz

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

are gone.
parent f2ae27e6
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment