From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 25 Nov 2017 00:07:37 +0000 (-0800) Subject: Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414) (GH-4549) X-Git-Tag: v3.6.4rc1~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05ee12153f51d78cc5160d59a01cad7b805f47a0;p=python Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414) (GH-4549) (cherry picked from commit f8802d80b32dbc64f9e0e72270695d24ac50e246) --- diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst index 1838eb95a7..e2ad3eb019 100644 --- a/Doc/library/asyncio-dev.rst +++ b/Doc/library/asyncio-dev.rst @@ -209,9 +209,9 @@ The fix is to call the :func:`ensure_future` function or the 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, -:func:`sys.displayhook` is not called. Instead, :ref:`a log is emitted +:func:`sys.excepthook` is not called. Instead, :ref:`a log is emitted ` when the future is deleted by the garbage collector, with the traceback where the exception was raised.