[fix] language

This commit is contained in:
Al
2015-11-27 14:24:32 -05:00
parent 38d4e2d67a
commit a77bc03977

View File

@@ -605,7 +605,7 @@ def build_address_format_training_data(admin_rtree, language_rtree, neighborhood
if not names or language not in names:
continue
city = names[language][0][0]
city = names[non_local_language or language][0][0]
if not city or not city.strip():
continue
address_components[AddressFormatter.CITY] = city