diff --git a/tractor/_root.py b/tractor/_root.py index 8391f4c..b9306b6 100644 --- a/tractor/_root.py +++ b/tractor/_root.py @@ -174,8 +174,11 @@ async def open_root_actor( yield actor except (Exception, trio.MultiError) as err: - logger.exception("Actor crashed:") - await _debug._maybe_enter_pm(err) + # with trio.CancelScope(shield=True): + entered = await _debug._maybe_enter_pm(err) + + if not entered: + logger.exception("Root actor crashed:") # always re-raise raise