◐ Shell
clean mode source ↗

[3.10] bpo-44472: Fix ltrace functionality when exceptions are raised (GH-26822) by miss-islington · Pull Request #26830 · python/cpython

Expand Up @@ -5386,11 +5386,14 @@ static int prtrace(PyThreadState *tstate, PyObject *v, const char *str) { printf("%s ", str); PyObject *type, *value, *traceback; PyErr_Fetch(&type, &value, &traceback); if (PyObject_Print(v, stdout, 0) != 0) { /* Don't know what else to do */ _PyErr_Clear(tstate); } printf("\n"); PyErr_Restore(type, value, traceback); return 1; } #endif Expand Down