Skip to content

Commit

Permalink
pythongh-110383: Explained which error message is generated when ther…
Browse files Browse the repository at this point in the history
…e is an unhandled exception (pythonGH-111574)

(cherry picked from commit a6d25de)

Co-authored-by: Unique-Usman <86585626+Unique-Usman@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
  • Loading branch information
2 people authored and miss-islington committed Nov 19, 2023
1 parent e9a97c3 commit 43e0a49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Doc/tutorial/errors.rst
Expand Up @@ -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.
Expand Down

0 comments on commit 43e0a49

Please sign in to comment.