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.
goto error
return NULL
BaseExceptionGroup_repr()
1 parent 5353340 commit 9997c01Copy full SHA for 9997c01
1 file changed
Objects/exceptions.c
@@ -1100,7 +1100,7 @@ BaseExceptionGroup_repr(PyObject *op)
1100
if (PyList_Check(PyTuple_GET_ITEM(self->args, 1))) {
1101
PyObject *exceptions_list = PySequence_List(self->excs);
1102
if (!exceptions_list) {
1103
- goto error;
+ return NULL;
1104
}
1105
1106
exceptions_str = PyObject_Repr(exceptions_list);
@@ -1111,7 +1111,7 @@ BaseExceptionGroup_repr(PyObject *op)
1111
1112
1113
if (!exceptions_str) {
1114
1115
1116
} else {
1117
exceptions_str = Py_NewRef(self->excs_str);
@@ -1126,8 +1126,6 @@ BaseExceptionGroup_repr(PyObject *op)
1126
1127
Py_DECREF(exceptions_str);
1128
return repr;
1129
-error:
1130
- return NULL;
1131
1132
1133
/*[clinic input]
0 commit comments