diff options
| author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-03-16 10:16:01 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-16 10:16:01 (GMT) |
| commit | 51d693c58454a2c525094a7c74ebac86859353fd (patch) | |
| tree | 9c5bd67c259638864cc3e57031ead3707355ba8d /Include/cpython/pyerrors.h | |
| parent | 2dc94634b50f0e5e207787e5ac1d56c68b22c3ae (diff) | |
| download | cpython-51d693c58454a2c525094a7c74ebac86859353fd.zip cpython-51d693c58454a2c525094a7c74ebac86859353fd.tar.gz cpython-51d693c58454a2c525094a7c74ebac86859353fd.tar.bz2 | |
gh-102594: PyErr_SetObject adds note to exception raised on normalization error (#102675)
Diffstat (limited to 'Include/cpython/pyerrors.h')
| -rw-r--r-- | Include/cpython/pyerrors.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h index 0d9cc99..d0300f6 100644 --- a/Include/cpython/pyerrors.h +++ b/Include/cpython/pyerrors.h @@ -112,6 +112,10 @@ PyAPI_FUNC(PyObject *) _PyErr_FormatFromCause( /* In exceptions.c */ +PyAPI_FUNC(int) _PyException_AddNote( + PyObject *exc, + PyObject *note); + /* Helper that attempts to replace the current exception with one of the * same type but with a prefix added to the exception text. The resulting * exception description looks like: |
