Just warn for now on unknown dialogs

ordermodepps_backup
Tyler Goodlet 2021-07-22 13:21:58 -04:00
parent 40a38284df
commit 5d94ee7479
1 changed files with 8 additions and 1 deletions

View File

@ -505,7 +505,14 @@ async def run_order_mode(
resp = msg['resp'] resp = msg['resp']
oid = msg['oid'] oid = msg['oid']
dialog = mode.dialogs[oid] dialog = mode.dialogs.get(oid)
if dialog is None:
log.warning(f'received msg for untracked dialog:\n{fmsg}')
# TODO: enable pure tracking / mirroring of dialogs
# is desired.
continue
# record message to dialog tracking # record message to dialog tracking
dialog.msgs[oid] = msg dialog.msgs[oid] = msg