From cadc20081839dc5fdae69e847c6187c4c8d1df13 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 16 Oct 2023 13:15:12 -0400 Subject: [PATCH] Always ignore untracked-order error msgs from `brokerd` --- piker/clearing/_ems.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/piker/clearing/_ems.py b/piker/clearing/_ems.py index 501e0dd8..3f7045fa 100644 --- a/piker/clearing/_ems.py +++ b/piker/clearing/_ems.py @@ -913,8 +913,17 @@ async def translate_and_relay_brokerd_events( }: if ( not oid + # try to lookup any order dialog by + # brokerd-side id.. + and not ( + oid := book._ems2brokerd_ids.inverse.get(reqid) + ) ): - oid: str = book._ems2brokerd_ids.inverse[reqid] + log.warning( + f'Rxed unusable error-msg:\n' + f'{brokerd_msg}' + ) + continue msg = BrokerdError(**brokerd_msg)