mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-42589: Change URL for 'from' link when used in a raised exception (GH-23872)
Links for 'raise Exception from x' target to 'The raise statement' (7.8) section instead of 'The import statement' (7.11) section.
There are more modified links than in the bug report because I searched some other ones which can get the same improvement.
(cherry picked from commit 2fd928c8c1
)
Co-authored-by: sblondon <sblondon@users.noreply.github.com>
This commit is contained in:
parent
491fde0161
commit
3eaa6f9d18
2 changed files with 3 additions and 3 deletions
|
@ -272,7 +272,7 @@ re-raise the exception::
|
|||
Exception Chaining
|
||||
==================
|
||||
|
||||
The :keyword:`raise` statement allows an optional :keyword:`from` which enables
|
||||
The :keyword:`raise` statement allows an optional :keyword:`from<raise>` which enables
|
||||
chaining exceptions. For example::
|
||||
|
||||
# exc must be exception instance or None.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue