Skip to content

Commit d807bf2

Browse files
Document optional 'task'/'asyncgen' fields in call_exception_handler (GH-21735) (GH-30727)
(cherry picked from commit a1652da) Co-authored-by: Shane Harvey <shnhrv@gmail.com> Co-authored-by: Shane Harvey <shnhrv@gmail.com>
1 parent ba932d9 commit d807bf2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doc/library/asyncio-eventloop.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,10 +1193,13 @@ Allows customizing how exceptions are handled in the event loop.
11931193
* 'message': Error message;
11941194
* 'exception' (optional): Exception object;
11951195
* 'future' (optional): :class:`asyncio.Future` instance;
1196+
* 'task' (optional): :class:`asyncio.Task` instance;
11961197
* 'handle' (optional): :class:`asyncio.Handle` instance;
11971198
* 'protocol' (optional): :ref:`Protocol <asyncio-protocol>` instance;
11981199
* 'transport' (optional): :ref:`Transport <asyncio-transport>` instance;
1199-
* 'socket' (optional): :class:`socket.socket` instance.
1200+
* 'socket' (optional): :class:`socket.socket` instance;
1201+
* 'asyncgen' (optional): Asynchronous generator that caused
1202+
the exception.
12001203

12011204
.. note::
12021205

0 commit comments

Comments
 (0)