Skip to content

Commit

Permalink
Merge pull request quantopian#1479 from quantopian/run_algo-defaults
Browse files Browse the repository at this point in the history
BUG: run_algorithm with no data source should default
  • Loading branch information
richafrank committed Sep 12, 2016
2 parents 7a10d93 + 6afdb31 commit b729ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zipline/utils/run_algo.py
Expand Up @@ -329,13 +329,13 @@ def run_algorithm(start,
# if neither data nor bundle are passed use 'quantopian-quandl'
bundle = 'quantopian-quandl'

if len(non_none_data) != 1:
elif len(non_none_data) != 1:
raise ValueError(
'must specify one of `data`, `data_portal`, or `bundle`,'
' got: %r' % non_none_data,
)

if 'bundle' not in non_none_data and bundle_timestamp is not None:
elif 'bundle' not in non_none_data and bundle_timestamp is not None:
raise ValueError(
'cannot specify `bundle_timestamp` without passing `bundle`',
)
Expand Down

0 comments on commit b729ddd

Please sign in to comment.