[fix] strip values in OpenAddresses components

This commit is contained in:
Al
2016-08-26 10:24:34 -04:00
parent 472580320d
commit 3b2c86d240

View File

@@ -169,7 +169,9 @@ class OpenAddressesFormatter(object):
if not_applicable_regex.match(value):
continue
components[key] = value.strip(', ')
value = value.strip(', ')
if value:
components[key] = value
if components:
country, candidate_languages, language_props = self.language_rtree.country_and_languages(latitude, longitude)