X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b062e7e7744d9f8f4a28d9c62197143d7352569d..a8a700e16d286971c43c013b322a1fd4a339de4d:/utils/tigerAddressImport.py diff --git a/utils/tigerAddressImport.py b/utils/tigerAddressImport.py index c0d83ceb..0dc55e99 100755 --- a/utils/tigerAddressImport.py +++ b/utils/tigerAddressImport.py @@ -161,9 +161,9 @@ def parse_shp_for_geom_and_tags( filename ): statefp = poFeature.GetField("STATEFP") countyfp = poFeature.GetField("COUNTYFP") if (statefp != None) and (countyfp != None): - county_name = county_fips_data[statefp + '' + countyfp] + county_name = county_fips_data.get(statefp + '' + countyfp) if county_name: - tags["tiger:county"] = county_name + tags["tiger:county"] = county_name.encode("utf-8") # tlid = poFeature.GetField("TLID") # if tlid != None: