From 9aebe7d8f993ab62404f85abcb694e11e22c48cb Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 5 Sep 2025 22:23:51 -0400 Subject: [PATCH] Only read `_mask_cases` if truthy, allow disabling for xfails --- tractor/trionics/_taskc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tractor/trionics/_taskc.py b/tractor/trionics/_taskc.py index d299bbb0..dc534037 100644 --- a/tractor/trionics/_taskc.py +++ b/tractor/trionics/_taskc.py @@ -163,6 +163,7 @@ async def maybe_raise_from_masking_exc( # ^XXX, special case(s) where we warn-log bc likely # there will be no operational diff since the exc # is always expected to be consumed. + ) -> BoxedMaybeException: ''' Maybe un-mask and re-raise exception(s) suppressed by a known @@ -263,6 +264,8 @@ async def maybe_raise_from_masking_exc( if len(masked) < 2: # don't unmask already known "special" cases.. if ( + _mask_cases + and (cases := _mask_cases.get(type(exc_ctx))) and (masker_frame := is_expected_masking_case(