From 986ada2ce9687fec697cb28defd635eeb4d16846 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 3 Mar 2025 19:45:29 -0500 Subject: [PATCH] Fix an `aio_err` ref bug --- tractor/to_asyncio.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tractor/to_asyncio.py b/tractor/to_asyncio.py index f65cc7e..baef981 100644 --- a/tractor/to_asyncio.py +++ b/tractor/to_asyncio.py @@ -348,7 +348,6 @@ def _run_asyncio_task( trio_task: trio.Task = trio.lowlevel.current_task() trio_cs = trio.CancelScope() aio_task_complete = trio.Event() - aio_err: BaseException|None = None chan = LinkedTaskChannel( _to_aio=aio_q, # asyncio.Queue @@ -392,7 +391,7 @@ def _run_asyncio_task( if ( result != orig and - aio_err is None + chan._aio_err is None and # in the `open_channel_from()` case we don't