Skip to content

Commit

Permalink
Document optional 'task'/'asyncgen' fields in call_exception_handler (G…
Browse files Browse the repository at this point in the history
…H-21735) (GH-30727)

(cherry picked from commit a1652da)

Co-authored-by: Shane Harvey <shnhrv@gmail.com>

Co-authored-by: Shane Harvey <shnhrv@gmail.com>
  • Loading branch information
miss-islington and ShaneHarvey committed Jan 23, 2022
1 parent ba932d9 commit d807bf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Doc/library/asyncio-eventloop.rst
Expand Up @@ -1193,10 +1193,13 @@ Allows customizing how exceptions are handled in the event loop.
* 'message': Error message;
* 'exception' (optional): Exception object;
* 'future' (optional): :class:`asyncio.Future` instance;
* 'task' (optional): :class:`asyncio.Task` instance;
* 'handle' (optional): :class:`asyncio.Handle` instance;
* 'protocol' (optional): :ref:`Protocol <asyncio-protocol>` instance;
* 'transport' (optional): :ref:`Transport <asyncio-transport>` instance;
* 'socket' (optional): :class:`socket.socket` instance.
* 'socket' (optional): :class:`socket.socket` instance;
* 'asyncgen' (optional): Asynchronous generator that caused
the exception.

.. note::

Expand Down

0 comments on commit d807bf2

Please sign in to comment.