From 7859e743cc8e0799b1719c610d663a92afd0449d Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 22 Aug 2024 17:22:53 -0400 Subject: [PATCH] Add `tb_hide: bool` ctl flag to `_open_and_supervise_one_cancels_all_nursery()` --- tractor/_supervise.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tractor/_supervise.py b/tractor/_supervise.py index b644ef2..de26807 100644 --- a/tractor/_supervise.py +++ b/tractor/_supervise.py @@ -374,11 +374,12 @@ class ActorNursery: @acm async def _open_and_supervise_one_cancels_all_nursery( actor: Actor, + tb_hide: bool = False, ) -> typing.AsyncGenerator[ActorNursery, None]: # normally don't need to show user by default - __tracebackhide__: bool = True + __tracebackhide__: bool = tb_hide outer_err: BaseException|None = None inner_err: BaseException|None = None