diff --git a/scripts/geodata/addresses/components.py b/scripts/geodata/addresses/components.py index ab251fe1..7278143d 100644 --- a/scripts/geodata/addresses/components.py +++ b/scripts/geodata/addresses/components.py @@ -504,7 +504,7 @@ class AddressComponents(object): for combo in combo_config: components = OrderedDict.fromkeys(combo['components']).keys() - if not all((is_numeric(address_components.get(c, generated.get(c))) or c in generated for c in components)): + if not all((is_numeric(address_components.get(c, generated.get(c))) or generated.get(c) for c in components)): if combo['probability'] == 1.0: for c in components: if c in address_components and c in generated: