summaryrefslogtreecommitdiff
path: root/scraper/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/util.py')
-rw-r--r--scraper/util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scraper/util.py b/scraper/util.py
index e9fdd49f..a435f91a 100644
--- a/scraper/util.py
+++ b/scraper/util.py
@@ -89,6 +89,8 @@ def write_report(fn, title=None, keys=None, rows=[]):
print("{} {}".format(fn, count))
def percent(m, n):
+ if n == 0:
+ return 100
return round(m / n * 100)
class NameLine(object):