[fix] missing definition

This commit is contained in:
Al
2016-05-19 00:54:59 -04:00
parent cf1000edf8
commit 21f52a54d5

View File

@@ -691,6 +691,8 @@ class AddressComponents(object):
def generate_sub_building_component(self, component, address_components, language, country=None, **kw):
existing = address_components.get(component, None)
component_class = self.sub_building_component_class_map[component]
if existing is None:
generated_type = self.generated_type(component, address_components, language, country=country)
if generated_type == self.ALPHANUMERIC_PHRASE: