[fix] try/except for GeoJSON in neighborhoods index, some of the neighborhoods repo polygons were using 3 coordinates

This commit is contained in:
Al
2016-05-16 01:52:36 -04:00
parent 3eec50858b
commit 2f6320cf03

View File

@@ -161,7 +161,10 @@ class ZetashapesReverseGeocoder(GeohashPolygonIndex):
f = open(os.path.join(repo_path, filename))
else:
continue
index.add_geojson_like_file(json.load(f)['features'])
try:
index.add_geojson_like_file(json.load(f)['features'])
except ValueError:
continue
return index