From a5bb33b0fff5f84654aac8775ea868e1c121cf9c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 25 Nov 2022 16:40:58 -0500 Subject: [PATCH] Avoid key error on already popped cancel --- piker/clearing/_ems.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/clearing/_ems.py b/piker/clearing/_ems.py index ad512c08..06ae3b70 100644 --- a/piker/clearing/_ems.py +++ b/piker/clearing/_ems.py @@ -866,7 +866,7 @@ async def translate_and_relay_brokerd_events( elif status == 'canceled': log.cancel(f'Cancellation for {oid} is complete!') - status_msg = book._active.pop(oid) + status_msg = book._active.pop(oid, None) else: # open # relayed from backend but probably not handled so