Skip to content

Commit 35a38e4

Browse files
authored
Update Lib/asyncio/taskgroups.py
1 parent 8a4eb56 commit 35a38e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/asyncio/taskgroups.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ def create_task(self, coro, *, name=None, context=None):
192192
if self._aborting:
193193
coro.close()
194194
raise RuntimeError(f"TaskGroup {self!r} is shutting down")
195+
task = None
195196
try:
196197
if context is None:
197198
task = self._loop.create_task(coro, name=name)

0 commit comments

Comments
 (0)