Skip to content

Commit

Permalink
Merge pull request #33 from tehbrut/master
Browse files Browse the repository at this point in the history
fix exception handle
  • Loading branch information
jehiah authored Oct 19, 2016
2 parents a6a5bf8 + a2fd15e commit f5e933f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_hacks/ninety_five_percent.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ def run():
continue
try:
t = Decimal(line)
count +=1
data[t] = data.get(t, 0) + 1
except:
print >>sys.stderr, "invalid line %r" % line
count +=1
data[t] = data.get(t, 0) + 1
print calc_95(data, count)

def calc_95(data, count):
Expand Down

0 comments on commit f5e933f

Please sign in to comment.