if (err->name == NULL) {
if (PyErr_ExceptionMatches(PyExc_MemoryError)) {
failure = "out of memory copying exception type name";
+ } else {
+ failure = "unable to encode and copy exception type name";
}
- failure = "unable to encode and copy exception type name";
goto finally;
}
if (err->msg == NULL) {
if (PyErr_ExceptionMatches(PyExc_MemoryError)) {
failure = "out of memory copying exception message";
+ } else {
+ failure = "unable to encode and copy exception message";
}
- failure = "unable to encode and copy exception message";
goto finally;
}
}