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.
Py_XNewRef
BaseExceptionGroup_repr()
1 parent 737206a commit 8d17ef3Copy full SHA for 8d17ef3
Objects/exceptions.c
@@ -1088,7 +1088,8 @@ BaseExceptionGroup_repr(PyObject *op)
1088
1089
PyObject *exceptions_str = Py_XNewRef(self->excs_str);
1090
1091
- /* If the initial exceptions string was not saved in the constructor. */
+ /* If the initial exceptions string was not saved in the constructor,
1092
+ * our call to Py_XNewRef returns NULL and we now format it on-demand. */
1093
if (!exceptions_str) {
1094
assert(self->excs);
1095
0 commit comments