From 011893122986e4c550b340b5b023ed5d6775a539 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet <jgbt@protonmail.com> Date: Sun, 13 Jun 2021 18:01:49 -0400 Subject: [PATCH] Add a specially handled `ContextCancelled` error --- tractor/_exceptions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tractor/_exceptions.py b/tractor/_exceptions.py index d213a20..3d20200 100644 --- a/tractor/_exceptions.py +++ b/tractor/_exceptions.py @@ -40,6 +40,7 @@ class InternalActorError(RemoteActorError): class TransportClosed(trio.ClosedResourceError): "Underlying channel transport was closed prior to use" + class ContextCancelled(RemoteActorError): "Inter-actor task context cancelled itself on the callee side."