Always ignore untracked-order error msgs from `brokerd`

distribute_dis
Tyler Goodlet 2023-10-16 13:15:12 -04:00
parent 363c8dfdb1
commit cadc200818
1 changed files with 10 additions and 1 deletions

View File

@ -913,8 +913,17 @@ async def translate_and_relay_brokerd_events(
}: }:
if ( if (
not oid 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) msg = BrokerdError(**brokerd_msg)