File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
from syscore .exceptions import missingData
2
- from syscore .objects import missing_data , failure
2
+ from syscore .objects import failure
3
3
from syscore .dateutils import Frequency , DAILY_PRICE_FREQ , MIXED_FREQ
4
4
from syscore .merge_data import spike_in_data
5
5
@@ -274,17 +274,14 @@ def get_prices_at_frequency_for_contract_object(
274
274
if self .has_price_data_for_contract_at_frequency (
275
275
contract_object , frequency = frequency
276
276
):
277
- try :
278
- return self ._get_prices_at_frequency_for_contract_object_no_checking (
279
- contract_object , frequency = frequency
280
- )
281
- except missingData :
282
- return missing_data
277
+ return self ._get_prices_at_frequency_for_contract_object_no_checking (
278
+ contract_object , frequency = frequency
279
+ )
283
280
else :
284
281
if return_empty :
285
282
return futuresContractPrices .create_empty ()
286
283
else :
287
- return missing_data
284
+ raise missingData
288
285
289
286
def write_merged_prices_for_contract_object (
290
287
self ,
You can’t perform that action at this time.
0 commit comments