We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2ae27e commit f83b751Copy full SHA for f83b751
1 file changed
Python/errors.c
@@ -590,8 +590,9 @@ PyErr_WriteUnraisable(PyObject *obj)
590
PyFile_WriteString("Exception ", f);
591
if (t) {
592
PyObject* moduleName;
593
- char* className = PyExceptionClass_Name(t);
594
-
+ char* className;
+ assert(PyExceptionClass_Check(t));
595
+ className = PyExceptionClass_Name(t);
596
if (className != NULL) {
597
char *dot = strrchr(className, '.');
598
if (dot != NULL)
0 commit comments