Use local task ref, fixes `mypy`

aio_error_propagation^2
Tyler Goodlet 2022-07-15 10:39:49 -04:00
parent ce01f6b21c
commit f0d78e1a6e
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ async def translate_aio_errors(
or chan._trio_exited
):
log.runtime(
f'Cancelling `asyncio`-task: {chan._aio_task.get_name()}'
f'Cancelling `asyncio`-task: {task.get_name()}'
)
# assert not aio_err, 'WTF how did asyncio do this?!'
task.cancel()