From 0906559ed9177ab24630b94e2dc045ad4056c5b8 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 14 Jul 2022 20:43:17 -0400 Subject: [PATCH] Drop manual stack construction, fix attr typo --- tractor/to_asyncio.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tractor/to_asyncio.py b/tractor/to_asyncio.py index 5168234..d0497c1 100644 --- a/tractor/to_asyncio.py +++ b/tractor/to_asyncio.py @@ -297,10 +297,7 @@ def _run_asyncio_task( elif task_err is None: assert aio_err aio_err.with_traceback(aio_err.__traceback__) - msg = ''.join(traceback.format_exception(type(aio_err))) - log.error( - f'infected task errorred:\n{msg}' - ) + log.error(f'infected task errorred') # XXX: alway cancel the scope on error # in case the trio task is blocking @@ -391,7 +388,7 @@ async def translate_aio_errors( or chan._trio_exited ): log.runtime( - f'Cancelling `asyncio`-task: {chan._aio_taskget_name()}' + f'Cancelling `asyncio`-task: {chan._aio_task.get_name()}' ) # assert not aio_err, 'WTF how did asyncio do this?!' task.cancel()