From 38326e8c155052b5b60cc29b730dad0b61d2ed73 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 11 Dec 2022 19:48:54 -0500 Subject: [PATCH] Avoid error on context double pops --- tractor/_portal.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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