From 3a1950612163c099e63e79e691dcf64e2608286c Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 31 Jul 2016 18:30:46 -0400 Subject: [PATCH] [fix] containing ids --- scripts/geodata/addresses/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/addresses/components.py b/scripts/geodata/addresses/components.py index f01d08bc..ecf61496 100644 --- a/scripts/geodata/addresses/components.py +++ b/scripts/geodata/addresses/components.py @@ -321,7 +321,7 @@ class AddressComponents(object): is_state = False - containing_ids = [(c['type'], c['id']) for c in osm_components[i + 1:]] + containing_ids = [(c['type'], c['id']) for c in osm_components[i + 1:] if 'type' in c and 'id' in c] component = osm_address_components.component_from_properties(country, props, containing=containing_ids) if component is not None: