Never key error on bad flow pops..
parent
e7e7919a43
commit
4a8eafabb8
|
@ -90,4 +90,7 @@ class OrderDialogs(Struct):
|
|||
for the given order id.
|
||||
|
||||
'''
|
||||
return self._flows.pop(oid)
|
||||
if (flow := self._flows.pop(oid, None)) is None:
|
||||
log.warning(f'No flow found for oid: {oid}')
|
||||
|
||||
return flow
|
||||
|
|
Loading…
Reference in New Issue