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
fixup
  • Loading branch information
methane committed Nov 5, 2020
commit b43dfa6fdf04d0e416d3c3e0b308f162f04d562c
6 changes: 3 additions & 3 deletions Doc/tutorial/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,11 @@ This can be useful when you are transforming exceptions. For example::
<BLANKLINE>
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
RuntimeError
RuntimeError: Failed to open database

Exception chaining happens automatically when an exception is raised inside an
:keyword:`except` section or :keyword:`finally` section. Exception chaining can
be disabled by using ``from None`` idiom:
:keyword:`except` or :keyword:`finally` section. Exception chaining can be
disabled by using ``from None`` idiom:

>>> try:
... open('database.sqlite')
Expand Down