From 4774881812c1cc6baa3db409cacd722147bc13e3 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 6 Apr 2021 12:08:15 -0400 Subject: [PATCH] Handle predicate not yet inserted to exec loop --- piker/clearing/_ems.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/clearing/_ems.py b/piker/clearing/_ems.py index 0998aa44..7cfd3a60 100644 --- a/piker/clearing/_ems.py +++ b/piker/clearing/_ems.py @@ -175,7 +175,7 @@ async def execute_triggers( tuple(execs.items()) ): - if (ttype not in tf) or (not pred(price)): + if not pred or (ttype not in tf) or (not pred(price)): # majority of iterations will be non-matches continue