Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414) (GH-4549)

(cherry picked from commit f8802d80b3)
This commit is contained in:
Miss Islington (bot) 2017-11-24 16:07:37 -08:00 committed by Mariatta
parent 7b909a93bf
commit 05ee12153f
1 changed files with 2 additions and 2 deletions

View File

@ -209,9 +209,9 @@ The fix is to call the :func:`ensure_future` function or the
Detect exceptions never consumed Detect exceptions never consumed
-------------------------------- --------------------------------
Python usually calls :func:`sys.displayhook` on unhandled exceptions. If Python usually calls :func:`sys.excepthook` on unhandled exceptions. If
:meth:`Future.set_exception` is called, but the exception is never consumed, :meth:`Future.set_exception` is called, but the exception is never consumed,
:func:`sys.displayhook` is not called. Instead, :ref:`a log is emitted :func:`sys.excepthook` is not called. Instead, :ref:`a log is emitted
<asyncio-logger>` when the future is deleted by the garbage collector, with the <asyncio-logger>` when the future is deleted by the garbage collector, with the
traceback where the exception was raised. traceback where the exception was raised.