diff --git a/tractor/_exceptions.py b/tractor/_exceptions.py index 89ea21a..b4386db 100644 --- a/tractor/_exceptions.py +++ b/tractor/_exceptions.py @@ -981,18 +981,6 @@ class MessagingError(Exception): ''' -class AsyncioCancelled(Exception): - ''' - Asyncio cancelled translation (non-base) error - for use with the ``to_asyncio`` module - to be raised in the ``trio`` side task - - NOTE: this should NOT inherit from `asyncio.CancelledError` or - tests should break! - - ''' - - def pack_error( exc: BaseException|RemoteActorError, @@ -1172,7 +1160,7 @@ def is_multi_cancelled( trio.Cancelled in ignore_nested # XXX always count-in `trio`'s native signal ): - ignore_nested |= {trio.Cancelled} + ignore_nested.update({trio.Cancelled}) if isinstance(exc, BaseExceptionGroup): matched_exc: BaseExceptionGroup|None = exc.subgroup(