From 831790377b84f403bfa878dae6afdab88c455598 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 7 Apr 2023 16:08:07 -0400 Subject: [PATCH] Assign `RemoteActorError` boxed error type for context cancelleds --- tractor/_exceptions.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tractor/_exceptions.py b/tractor/_exceptions.py index 5440cad..58caada 100644 --- a/tractor/_exceptions.py +++ b/tractor/_exceptions.py @@ -55,9 +55,11 @@ class RemoteActorError(Exception): class InternalActorError(RemoteActorError): - """Remote internal ``tractor`` error indicating + ''' + Remote internal ``tractor`` error indicating failure of some primitive or machinery. - """ + + ''' class TransportClosed(trio.ClosedResourceError): @@ -136,7 +138,7 @@ def unpack_error( if type_name == 'ContextCancelled': err_type = ContextCancelled - suberror_type = trio.Cancelled + suberror_type = RemoteActorError else: # try to lookup a suitable local error type for ns in [