File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -152,14 +152,15 @@ and Ammar Askar in :issue:`43950`.)
152
152
or the :envvar: `PYTHONNODEBUGRANGES ` environment variable.
153
153
154
154
155
- Exceptions can be enriched with notes (PEP 678)
156
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
157
-
158
- The :meth: `add_note ` method was added to :exc: `BaseException `. It can be
159
- used to enrich exceptions with context information which is not available
160
- at the time when the exception is raised. The notes added appear in the
161
- default traceback. See :pep: `678 ` for more details. (Contributed by
162
- Irit Katriel in :issue: `45607 `.)
155
+ Exceptions can be enriched with notes
156
+ -------------------------------------
157
+
158
+ The :meth: `~BaseException.add_note ` method was added to :exc: `BaseException `.
159
+ It can be used to enrich exceptions with context information
160
+ that is not available at the time when the exception is raised.
161
+ The added notes appear in the default traceback.
162
+ See :pep: `678 ` for more details.
163
+ (Contributed by Irit Katriel in :issue: `45607 `.)
163
164
164
165
165
166
.. _new-feat-related-type-hints-311 :
You can’t perform that action at this time.
0 commit comments