File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
sysproduction/reporting/data Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 2
2
import pandas as pd
3
3
from dataclasses import dataclass
4
4
5
- from syscore .constants import named_object , missing_data
5
+ from syscore .constants import named_object
6
+ from syscore .exceptions import missingData
6
7
from sysdata .config .instruments import generate_matching_duplicate_dict
7
8
from sysdata .config .production_config import get_production_config
8
9
from sysproduction .reporting .data .constants import (
@@ -401,10 +402,11 @@ def get_data_for_markets(data):
401
402
def get_existing_bad_markets (data ):
402
403
production_config = data .config
403
404
404
- excluded_markets_config_element = production_config .get_element_or_missing_data (
405
- "exclude_instrument_lists"
406
- )
407
- if excluded_markets_config_element is missing_data :
405
+ try :
406
+ excluded_markets_config_element = production_config .get_element (
407
+ "exclude_instrument_lists"
408
+ )
409
+ except missingData :
408
410
print ("NO BAD MARKETS IN CONFIG!" )
409
411
existing_bad_markets = []
410
412
else :
You can’t perform that action at this time.
0 commit comments