mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
bpo-36829: PyErr_WriteUnraisable() normalizes exception (GH-13507)
PyErr_WriteUnraisable() now creates a traceback object if there is no current traceback. Moreover, call PyErr_NormalizeException() and PyException_SetTraceback() to normalize the exception value. Ignore silently any error.
This commit is contained in:
parent
5edcf26358
commit
df22c03b93
5 changed files with 47 additions and 13 deletions
|
|
@ -86,6 +86,10 @@ PyAPI_FUNC(void) _Py_DumpHexadecimal(
|
|||
unsigned long value,
|
||||
Py_ssize_t width);
|
||||
|
||||
PyAPI_FUNC(PyObject*) _PyTraceBack_FromFrame(
|
||||
PyObject *tb_next,
|
||||
struct _frame *frame);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue