forked from goodboy/tractor
1
0
Fork 0

TOSQUASH: dun need the var...

egs_with_ctx_res_consumption
Tyler Goodlet 2022-10-12 17:49:33 -04:00
parent 42cae56823
commit 8727c1e4c2
1 changed files with 3 additions and 4 deletions

View File

@ -301,7 +301,7 @@ async def _open_and_supervise_one_cancels_all_nursery(
) -> typing.AsyncGenerator[ActorNursery, None]:
# the collection of errors retreived from spawned sub-actors
errors: dict[tuple[str, str], Exception] = {}
errors: dict[tuple[str, str], BaseException] = {}
# This is the outermost level "deamon actor" nursery. It is awaited
# **after** the below inner "run in actor nursery". This allows for
@ -310,7 +310,6 @@ async def _open_and_supervise_one_cancels_all_nursery(
# actors spawned in "daemon mode" (aka started using
# ``ActorNursery.start_actor()``).
err: BaseExpection | None = None
# errors from this daemon actor nursery bubble up to caller
async with trio.open_nursery() as da_nursery:
try:
@ -412,9 +411,9 @@ async def _open_and_supervise_one_cancels_all_nursery(
BaseExceptionGroup,
trio.Cancelled
) as err:
) as err: # noqa
errors[actor.uid] = err
# XXX: yet another guard before allowing the cancel
# sequence in case a (single) child is in debug.
await maybe_wait_for_debugger(