From f0d78e1a6ea9143c34a284a67cc7c8279c7f22e5 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 15 Jul 2022 10:39:49 -0400 Subject: [PATCH] Use local task ref, fixes `mypy` --- tractor/to_asyncio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tractor/to_asyncio.py b/tractor/to_asyncio.py index d0497c1..0634215 100644 --- a/tractor/to_asyncio.py +++ b/tractor/to_asyncio.py @@ -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()