diff --git a/VERSION b/VERSION index ff21e5fa..333b1ba5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.19.1-develop68 +1.19.1-develop69 diff --git a/modules/meta.py b/modules/meta.py index bfaf1a11..70232217 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -1010,7 +1010,7 @@ class MetadataFile(DataFile): if max_year is None or year > max_year: max_year = year - if "starting" in award_methods and str(dynamic_data[award_methods["starting"]]).startswith("current_year"): + if "starting" in award_methods and str(dynamic_data[award_methods["starting"]]).startswith("current"): year_values = str(dynamic_data[award_methods["starting"]]).split("-") try: starting = current_year - (0 if len(year_values) == 1 else int(year_values[1].strip())) @@ -1019,7 +1019,8 @@ class MetadataFile(DataFile): else: try: starting = util.parse("Config", "starting", dynamic_data, parent=f"{map_name} data", methods=award_methods, datatype="int", minimum=min_year) - except Failed + except Failed: + raise Failed(f"Config Error: {map_name} data starting attribute invalid '{year_values[1]}'") if not starting: starting = current_year if "ending" in award_methods and str(dynamic_data[award_methods["ending"]]).startswith("current_year"):