Skip to content

Commit

Permalink
ENH: Adds the full Asset objects to the kwargs of MultipleSymbolsFound
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkirk committed Jul 7, 2015
1 parent f46fef1 commit 8df7bee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion zipline/assets/assets.py
Expand Up @@ -173,7 +173,8 @@ def lookup_symbol_resolve_multiple(self, symbol, as_of_date=None):
return infos[0]
else:
raise MultipleSymbolsFound(symbol=symbol,
options=str(infos))
options=infos,
options_str=str(infos))

# Try to find symbol matching as_of_date
asset, _ = self._lookup_symbol_in_infos(infos, as_of_date)
Expand Down
2 changes: 1 addition & 1 deletion zipline/errors.py
Expand Up @@ -202,7 +202,7 @@ class MultipleSymbolsFound(ZiplineError):
as_of_date' argument to to specify when the date symbol-lookup
should be valid.
Possible options:{options}
Possible options:{options_str}
""".strip()


Expand Down

0 comments on commit 8df7bee

Please sign in to comment.