Skip to content

Commit 2c90d0d

Browse files
author
Andrew Daniels
committed
BUG: Catch all missing data exceptions when computing dividend ratios
1 parent 9d7049a commit 2c90d0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zipline/data/us_equity_pricing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ def calc_dividend_ratios(self, dividends):
992992
ratios[i] = ratio
993993
# only assign effective_date when data is found
994994
effective_dates[i] = ex_date
995-
except NoDataOnDate:
995+
except (NoDataOnDate, NoDataBeforeDate, NoDataAfterDate):
996996
logger.warn("Couldn't compute ratio for dividend %s" % {
997997
'sid': sid,
998998
'ex_date': ex_date,

0 commit comments

Comments
 (0)