Only warn if trigger predicate was already popped
parent
0744eb78a6
commit
47d0c81a2d
|
@ -256,7 +256,11 @@ async def clear_dark_triggers(
|
|||
|
||||
# remove exec-condition from set
|
||||
log.info(f'removing pred for {oid}')
|
||||
execs.pop(oid)
|
||||
pred = execs.pop(oid, None)
|
||||
if not pred:
|
||||
log.warning(
|
||||
f'pred for {oid} was already removed!?'
|
||||
)
|
||||
|
||||
await ems_client_order_stream.send(msg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue