From fc118acd9096adbcba1007af3fafb6832cbe107c Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 28 Jul 2016 02:48:45 -0400 Subject: [PATCH] [fix] language None for ambiguous case --- scripts/geodata/osm/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/osm/formatter.py b/scripts/geodata/osm/formatter.py index 536dbbff..00cf0714 100644 --- a/scripts/geodata/osm/formatter.py +++ b/scripts/geodata/osm/formatter.py @@ -509,7 +509,7 @@ class OSMAddressFormatter(object): language_suffix=language_suffix, drop_duplicate_city_names=False) if random.random() < cldr_country_prob and AddressFormatter.COUNTRY in address_components: - address_country = self.components.cldr_country_name(country, language) + address_country = self.components.cldr_country_name(country, None) if address_country: address_components[AddressFormatter.COUNTRY] = address_country