Skip to content

Commit

Permalink
BUG: check that end and start are not none before normalizing them
Browse files Browse the repository at this point in the history
  • Loading branch information
lenak25 committed May 23, 2018
1 parent 8f1dac6 commit 2767128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions catalyst/utils/run_algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ def choose_loader(column):
# We still need to support bundles for other misc data, but we
# can handle this later.

if start != pd.tslib.normalize_date(start) or \
end != pd.tslib.normalize_date(end):
if (start and start != pd.tslib.normalize_date(start)) or \
(end and end != pd.tslib.normalize_date(end)):
# todo: add to Sim_Params the option to
# start & end at specific times
log.warn(
Expand Down

0 comments on commit 2767128

Please sign in to comment.