Skip to content

Commit f5e933f

Browse files
authored
Merge pull request #33 from tehbrut/master
fix exception handle
2 parents a6a5bf8 + a2fd15e commit f5e933f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data_hacks/ninety_five_percent.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ def run():
3434
continue
3535
try:
3636
t = Decimal(line)
37+
count +=1
38+
data[t] = data.get(t, 0) + 1
3739
except:
3840
print >>sys.stderr, "invalid line %r" % line
39-
count +=1
40-
data[t] = data.get(t, 0) + 1
4141
print calc_95(data, count)
4242

4343
def calc_95(data, count):

0 commit comments

Comments
 (0)