diff --git a/tractor/_portal.py b/tractor/_portal.py index 089b09e..bdba793 100644 --- a/tractor/_portal.py +++ b/tractor/_portal.py @@ -536,7 +536,10 @@ class Portal: await maybe_wait_for_debugger() # remove the context from runtime tracking - self.actor._contexts.pop((self.channel.uid, ctx.cid)) + self.actor._contexts.pop( + (self.channel.uid, ctx.cid), + None, + ) @dataclass