From 3f57b742d34c33f6c49c7435f0aee3fe9df55a20 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Wed, 15 Jul 2015 08:30:49 -0400 Subject: [PATCH] BUG: Provide asset data for multiple symbol error. Fix a change in the information given to the multiple symbol error during the recent sqlite change to the asset finder. Instead of the string of sids, return full asset information about the available options, since internal code relied on the full data. --- zipline/assets/assets.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py index 803efec2..197dd7c8 100644 --- a/zipline/assets/assets.py +++ b/zipline/assets/assets.py @@ -376,8 +376,13 @@ class AssetFinder(object): elif not data: raise SymbolNotFound(symbol=symbol) else: + options = [] + for row in data: + sid = row[0] + asset = self._retrieve_equity(sid) + options.append(asset) raise MultipleSymbolsFound(symbol=symbol, - options=str(data)) + options=options) def lookup_symbol(self, symbol, as_of_date, fuzzy=False): """