From 54541eb24cf93c195b28a101ea1aa0d354b6e2d4 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Wed, 15 May 2013 16:57:09 -0400 Subject: [PATCH] BUG: Fix short circuit in StateTransform loop. A missing `continue` statement was causing the short circuit on event type to not have the intended effect of skipping the update portion of the loop. --- zipline/transforms/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zipline/transforms/utils.py b/zipline/transforms/utils.py index cd287388..40963167 100644 --- a/zipline/transforms/utils.py +++ b/zipline/transforms/utils.py @@ -144,6 +144,7 @@ class StatefulTransform(object): DATASOURCE_TYPE.TRADE, DATASOURCE_TYPE.CUSTOM)): yield message + continue # allow upstream generators to yield None to avoid # blocking. if message is None: