[fix] check for None in binary_search

This commit is contained in:
Al
2016-08-18 15:12:23 -04:00
parent 1675bba3f0
commit 87ee5f47f9

View File

@@ -75,6 +75,8 @@ class OSMIntersectionReader(object):
node_index = self.binary_search(node_ids, node_id)
except ValueError:
continue
if node_index is None:
continue
node_counts[node_index] += 1
if i % 1000 == 0 and i > 0: