From c734f23102994f4309e4fea1a83263794a80193d Mon Sep 17 00:00:00 2001 From: Thomas Wiecki Date: Tue, 3 Feb 2015 12:20:45 +0100 Subject: [PATCH] BUG: kwargs.pop() requires default argument. --- zipline/algorithm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/algorithm.py b/zipline/algorithm.py index b3d7097e..64e9b9a0 100644 --- a/zipline/algorithm.py +++ b/zipline/algorithm.py @@ -201,7 +201,7 @@ class TradingAlgorithm(object): self.event_manager = EventManager() if self.algoscript is not None: - filename = kwargs.pop('algo_filename') + filename = kwargs.pop('algo_filename', None) if filename is None: filename = '' code = compile(self.algoscript, filename, 'exec')