Skip to content

Commit 4e76704

Browse files
committed
minor fix
1 parent e49c496 commit 4e76704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_scripts/get_gender_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
def perc(val, total):
99
try:
1010
return float(val) / float(total)
11-
except ZeroDivisionError:
11+
except (ZeroDivisionError, TypeError, ValueError):
1212
return 0
1313

1414
def get_data(start_date=None, output=sys.stdout, family="wikipedia"):

0 commit comments

Comments
 (0)