Thanks to visit codestin.com
Credit goes to github.com

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
Update Doc/tutorial/errors.rst
Explained what happened when there is no handler for an exception i.e unhandled exception.

Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
Unique-Usman and hugovk authored Nov 19, 2023
commit cea3215f754f9c03a71cea363d0412dec6f96baf
4 changes: 1 addition & 3 deletions Doc/tutorial/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +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 error message.
The error message will provide information about the *unhandled exception*,
as described in the :ref:`tut-exceptions` section.
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