order_mode: Only send cancels for dialogs that still exist
parent
08e8990fe3
commit
d94ab9d5b2
|
@ -641,7 +641,7 @@ class OrderMode:
|
|||
group_key=True
|
||||
)
|
||||
for oid in oids:
|
||||
dialog: Dialog = self.dialogs[oid]
|
||||
if dialog := self.dialogs.get(oid):
|
||||
self.client.cancel_nowait(uuid=oid)
|
||||
cancel_status_close = self.multistatus.open_status(
|
||||
f'cancelling order {oid}',
|
||||
|
|
Loading…
Reference in New Issue