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 9275583 commit fbff4f6Copy full SHA for fbff4f6
Python/errors.c
@@ -633,14 +633,18 @@ _PyErr_ChainStackItem(_PyErr_StackItem *exc_info)
633
exc2 = exc_info->exc_type;
634
val2 = exc_info->exc_value;
635
tb2 = exc_info->exc_traceback;
636
+#ifdef Py_DEBUG
637
PyObject *exc2_before = exc2;
638
PyObject *val2_before = val2;
639
PyObject *tb2_before = tb2;
640
+#endif
641
_PyErr_NormalizeException(tstate, &exc2, &val2, &tb2);
642
643
/* exc_info should already be normalized */
644
assert(exc2 == exc2_before);
645
assert(val2 == val2_before);
646
assert(tb2 == tb2_before);
647
648
if (tb2 != NULL) {
649
PyException_SetTraceback(val2, tb2);
650
}
0 commit comments