prevent crash in parse_metadata.py for missing country
@@ -867,7 +867,7 @@ def check_for_missing(data):
if location not in ordering["location"] or location not in lat_longs["location"]:
s = bold(location)
- name0 = check_similar(hierarchical_ordering[region][country], location, "location")
+ name0 = check_similar(hierarchical_ordering[region][country], location, "location") if hierarchical_ordering[region].get(country) is not None else ""
if location not in ordering["location"] and location in lat_longs["location"]:
s = s + " (only missing in ordering => auto-added to color_ordering.tsv)"
if country not in data_clean[region]:
