Skip to content

Commit 1a1b88f

Browse files
committed
Fix for reducer
1 parent 3fc2afd commit 1a1b88f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎reducer.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
line = line.strip()
1414

1515
# parse the input we got from mapper.py
16-
word, count = line.split('\t', 1)
16+
try:
17+
word, count = line.split('\t', 1)
18+
except:
19+
continue
1720

1821
# convert count (currently a string) to int
1922
try:

0 commit comments

Comments
 (0)