Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
apply comments from gps
  • Loading branch information
iritkatriel committed Apr 18, 2022
commit 192bf861b738bf56897adee6cf36d7d4e8b273b1
6 changes: 3 additions & 3 deletions Doc/tutorial/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,9 @@ Enriching Exceptions with Notes
When an exception is created in order to be raised, it is usually initialized
with information that describes the error that has occurred. There are cases
where it is useful to add information after the exception was caught. For this
purpose, exceptions have a method ``add_node(note)`` that accepts a string and
adds it to the exception's notes list. The standard traceback includes all
notes, in the order they were added, after the exception. ::
purpose, exceptions have a method ``add_note(note)`` that accepts a string and
adds it to the exception's notes list. The standard traceback rendering
includes all notes, in the order they were added, after the exception. ::

>>> try:
... raise TypeError('bad type')
Expand Down