From 1003832b9c5d1d86bd0cd5bc564e5086664788c4 Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 9 Mar 2016 11:18:19 -0500 Subject: [PATCH] [fix] README should not be included in building address dictionaries --- scripts/geodata/address_expansions/address_dictionaries.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/geodata/address_expansions/address_dictionaries.py b/scripts/geodata/address_expansions/address_dictionaries.py index cf810f4f..80c5e4db 100644 --- a/scripts/geodata/address_expansions/address_dictionaries.py +++ b/scripts/geodata/address_expansions/address_dictionaries.py @@ -109,6 +109,8 @@ def create_address_expansion_rules_file(base_dir=ADDRESS_EXPANSIONS_DIR, output_ max_dictionary_types = 0 for language in os.listdir(base_dir): + if not os.path.isdir(language): + continue language_dir = os.path.join(base_dir, language) num_language_rules = 0