From 8868ff19f37f8710f83ffd70002b7428061b61af Mon Sep 17 00:00:00 2001 From: goodboy Date: Fri, 13 Mar 2026 16:48:58 -0400 Subject: [PATCH] Flip to `ActorNursery.cancel_called` API Avoid deprecation warnings, prepping for property removal. --- tractor/_supervise.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tractor/_supervise.py b/tractor/_supervise.py index 5b0b60b7..e1f8a62d 100644 --- a/tractor/_supervise.py +++ b/tractor/_supervise.py @@ -632,7 +632,7 @@ async def _open_and_supervise_one_cancels_all_nursery( # show frame on any (likely) internal error if ( - not an.cancelled + not an.cancel_called and an._scope_error ): __tracebackhide__: bool = False @@ -728,7 +728,7 @@ async def open_nursery( if ( an and - not an.cancelled + not an.cancel_called and an._scope_error ):