Only warn if trigger predicate was already popped

misc_backend_fixes
Tyler Goodlet 2022-01-21 08:46:31 -05:00
parent 0744eb78a6
commit 47d0c81a2d
1 changed files with 5 additions and 1 deletions

View File

@ -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)