Skip to content

Commit f8802d8

Browse files
ashwoodsMariatta
authored andcommitted
Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414)
1 parent f04ebe2 commit f8802d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/asyncio-dev.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ The fix is to call the :func:`ensure_future` function or the
216216
Detect exceptions never consumed
217217
--------------------------------
218218

219-
Python usually calls :func:`sys.displayhook` on unhandled exceptions. If
219+
Python usually calls :func:`sys.excepthook` on unhandled exceptions. If
220220
:meth:`Future.set_exception` is called, but the exception is never consumed,
221-
:func:`sys.displayhook` is not called. Instead, :ref:`a log is emitted
221+
:func:`sys.excepthook` is not called. Instead, :ref:`a log is emitted
222222
<asyncio-logger>` when the future is deleted by the garbage collector, with the
223223
traceback where the exception was raised.
224224

0 commit comments

Comments
 (0)