Kraken can cause status msg key error!?
parent
30c452cfd0
commit
47f81b31af
|
@ -884,11 +884,15 @@ async def translate_and_relay_brokerd_events(
|
||||||
oid = book._ems2brokerd_ids.inverse.get(reqid)
|
oid = book._ems2brokerd_ids.inverse.get(reqid)
|
||||||
msg = f'Unhandled broker status for dialog {reqid}:\n'
|
msg = f'Unhandled broker status for dialog {reqid}:\n'
|
||||||
if oid:
|
if oid:
|
||||||
status_msg = book._active[oid]
|
status_msg = book._active.get(oid)
|
||||||
msg += (
|
# status msg may not have been set yet or popped?
|
||||||
f'last status msg: {pformat(status_msg)}\n\n'
|
# NOTE: have seen a key error here on kraken
|
||||||
f'this msg:{fmsg}\n'
|
# clearable limits..
|
||||||
)
|
if status_msg:
|
||||||
|
msg += (
|
||||||
|
f'last status msg: {pformat(status_msg)}\n\n'
|
||||||
|
f'this msg:{fmsg}\n'
|
||||||
|
)
|
||||||
|
|
||||||
log.warning(msg)
|
log.warning(msg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue