Mk temp collapser bp work outside runtime as well..

POST_final_eg_refinements_failafter_investigation
Tyler Goodlet 2025-08-10 13:18:41 -04:00
parent f5c6fc2f02
commit 8b8390e83c
1 changed files with 11 additions and 2 deletions

View File

@ -116,9 +116,18 @@ async def collapse_eg(
except BaseExceptionGroup as _beg:
beg = _beg
if bp:
if (
bp
and
len(beg.exceptions) > 1
):
import tractor
if tractor.current_actor(
err_on_no_runtime=False,
):
await tractor.pause(shield=True)
else:
breakpoint()
if (
(exc := get_collapsed_eg(beg))