Skip to content

Commit ba55411

Browse files
committed
Use note instead of warning and tweak null wording
1 parent 4346e25 commit ba55411

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/c-api/exceptions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,10 @@ Querying the error indicator
499499
.. c:function:: void PyErr_SetRaisedException(PyObject *exc)
500500
501501
Set *exc* as the exception currently being raised,
502-
clearing the existing exception if one is set. *exc* may be ``NULL``,
503-
in which case the current exception is cleared without setting a new one.
502+
clearing the existing exception if one is set. If *exc* is ``NULL``,
503+
just clear the existing exception.
504504
505-
.. warning::
505+
.. note::
506506
507507
This call ":term:`steals <steal>`" a reference to *exc*.
508508

0 commit comments

Comments
 (0)