Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[bug 923270] Fix ZeroDivisionError #fail.

  • Loading branch information...
commit 449b2da22f130ebd83d222e31ebbfcba1ad74ced 1 parent cef2c8f
@rlr rlr authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 kitsune/dashboards/cron.py
View
6 kitsune/dashboards/cron.py
@@ -61,7 +61,11 @@ def update_l10n_coverage_metrics():
# % of all articles
all_ = rows['all']
- percent = 100.0 * float(all_['numerator']) / all_['denominator']
+ try:
+ percent = 100.0 * float(all_['numerator']) / all_['denominator']
+ except ZeroDivisionError:
+ percent = 0.0
+
WikiMetric.objects.create(
code=L10N_ALL_CODE,
locale=locale,
Please sign in to comment.
Something went wrong with that request. Please try again.