Skip to content

Commit 618f02f

Browse files
committed
Work around a problem in Helsinki address data
1 parent 969f873 commit 618f02f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

data/osoite-filter-dupes.py

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ def filter_dupes():
99
reader.next()
1010
addr_hash = {}
1111
for idx, row in enumerate(reader):
12+
if not row[-1]:
13+
s = "%s %s, %s" % (row[0], row[1], row[10])
14+
sys.stderr.write("No type found: %s\n" % s)
15+
continue
1216
row_type = int(row[-1])
1317
if row_type != 1:
1418
continue

0 commit comments

Comments
 (0)