8000 bpo-42179: Doc/tutorial: Remove mention of __cause__ by methane · Pull Request #23162 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-42179: Doc/tutorial: Remove mention of __cause__ #23162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 6, 2020
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
0