From 21f52a54d5a98170bb7306a28d0ff5af508ed2a6 Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 19 May 2016 00:54:59 -0400 Subject: [PATCH] [fix] missing definition --- scripts/geodata/addresses/components.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/geodata/addresses/components.py b/scripts/geodata/addresses/components.py index 766f92e5..8327c8ec 100644 --- a/scripts/geodata/addresses/components.py +++ b/scripts/geodata/addresses/components.py @@ -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: