mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-110383: Explained which error message is generated when there is an unhandled exception (#111574)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
6bf8f20344
commit
a6d25de375
1 changed files with 1 additions and 2 deletions
|
|
@ -108,8 +108,7 @@ The :keyword:`try` statement works as follows.
|
|||
|
||||
* If an exception occurs which does not match the exception named in the *except
|
||||
clause*, it is passed on to outer :keyword:`try` statements; if no handler is
|
||||
found, it is an *unhandled exception* and execution stops with a message as
|
||||
shown above.
|
||||
found, it is an *unhandled exception* and execution stops with an error message.
|
||||
|
||||
A :keyword:`try` statement may have more than one *except clause*, to specify
|
||||
handlers for different exceptions. At most one handler will be executed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue