[fix] null candidate languages

This commit is contained in:
Al
2016-10-07 19:49:32 -04:00
parent 30074524d8
commit 6ff1024c02
2 changed files with 4 additions and 2 deletions

View File

@@ -479,6 +479,8 @@ class OSMAddressFormatter(object):
osm_components = self.components.osm_reverse_geocoded_components(latitude, longitude)
country, candidate_languages = OSMCountryReverseGeocoder.country_and_languages_from_components(osm_components)
if not (country and candidate_languages):
return (), None
local_languages = candidate_languages