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
Next Next commit
exception --> exception instance
  • Loading branch information
iritkatriel committed Jan 10, 2022
commit dfc677791224696823c89ed294d798272e419cad
16 changes: 8 additions & 8 deletions Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -381,14 +381,14 @@ always available.

.. function:: exception()

This function returns the exception that is currently being handled. This
exception is specific both to the current thread and to the current stack
frame. If the current stack frame is not handling an exception, the
exception is taken from the calling stack frame, or its caller, and so on
until a stack frame is found that is handling an exception. Here,
"handling an exception" is defined as "executing an except clause."
For any stack frame, only the exception being currently handled is
accessible.
This function returns the exception instance that is currently being
handled. This exception is specific both to the current thread and
to the current stack frame. If the current stack frame is not handling
an exception, the exception is taken from the calling stack frame, or its
caller, and so on until a stack frame is found that is handling an
exception. Here, "handling an exception" is defined as "executing an
except clause." For any stack frame, only the exception being currently
handled is accessible.

.. index:: object: traceback

Expand Down