MAINT: Ensure we're not setting the blotter to None.

This commit is contained in:
Richard Frank
2013-05-10 12:00:43 -04:00
parent a12e907f55
commit 381df3534d
+3 -1
View File
@@ -120,7 +120,9 @@ class TradingAlgorithm(object):
if self.sim_params:
self.sim_params.data_frequency = self.data_frequency
self.blotter = kwargs.pop('blotter', Blotter())
self.blotter = kwargs.pop('blotter', None)
if not self.blotter:
self.blotter = Blotter()
# an algorithm subclass needs to set initialized to True when
# it is fully initialized.