[51] fix metadata year match

pull/1418/head
meisnate12 2 years ago
parent 74ca6e0702
commit 438624499b

@ -1 +1 @@
1.19.0-develop50
1.19.0-develop51

@ -1527,7 +1527,7 @@ class MetadataFile(DataFile):
logger.debug("")
logger.debug("Validating Method: year")
value = match_data[match_methods["year"]] if "year" in match_methods else meta[methods["year"]]
if not year:
if not value:
raise Failed(f"{self.type_str} Error: year attribute is blank")
logger.debug(f"Value: {value}")
year = util.parse(self.type_str, "year", value, datatype="int", minimum=1800, maximum=next_year)

Loading…
Cancel
Save