diff options
author | Jehiah Czebotar <jehiah@gmail.com> | 2016-10-19 10:10:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-19 10:10:23 -0400 |
commit | f5e933f820cca9c1d8a0605722026fd70ee04233 (patch) | |
tree | fa10bd464c6a89182f8e574ff6dd2599d74599db | |
parent | a6a5bf8cdac6b31f35983a26bfbf1bbdc89ae4eb (diff) | |
parent | a2fd15e61ffd9fe2670d89d65f903ba7861b8012 (diff) | |
download | data_hacks-f5e933f820cca9c1d8a0605722026fd70ee04233.zip data_hacks-f5e933f820cca9c1d8a0605722026fd70ee04233.tar.gz data_hacks-f5e933f820cca9c1d8a0605722026fd70ee04233.tar.bz2 |
Merge pull request #33 from tehbrut/masterHEADorigin/masterorigin/HEADmaster
fix exception handle
-rwxr-xr-x | data_hacks/ninety_five_percent.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data_hacks/ninety_five_percent.py b/data_hacks/ninety_five_percent.py index 9a51432..1410227 100755 --- a/data_hacks/ninety_five_percent.py +++ b/data_hacks/ninety_five_percent.py @@ -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): |