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 4f9a6ba commit 5fdaa02Copy full SHA for 5fdaa02
Objects/exceptions.c
@@ -1091,6 +1091,7 @@ BaseExceptionGroup_repr(PyObject *op)
1091
* value of self.args[1]; but this can be mutable and go out-of-sync
1092
* with self.exceptions. Instead, use self.exceptions for accuracy,
1093
* making it look like self.args[1] for backwards compatibility. */
1094
+ assert(PyTuple_Check(self->args));
1095
if (PyTuple_GET_SIZE(self->args) == 2 && PyList_Check(PyTuple_GET_ITEM(self->args, 1))) {
1096
PyObject *exceptions_list = PySequence_List(self->excs);
1097
if (!exceptions_list) {
0 commit comments