mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-09 11:19:23 +08:00
BUG: Makes NoData{Before, After}Date subclass NoDataOnDate (#1507)
This allows us to catch and handle all three of these exceptions in `calc_dividend_ratios`.
This commit is contained in:
@@ -22,11 +22,11 @@ class NoDataOnDate(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class NoDataBeforeDate(Exception):
|
||||
class NoDataBeforeDate(NoDataOnDate):
|
||||
pass
|
||||
|
||||
|
||||
class NoDataAfterDate(Exception):
|
||||
class NoDataAfterDate(NoDataOnDate):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user