summaryrefslogtreecommitdiff
path: root/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-12-23 11:51:04 -0600
committerDan McGee <dan@archlinux.org>2013-12-23 11:51:04 -0600
commit5eff1ab9bf0c3820c8b90e18efee1dfc773d08fc (patch)
tree442262d3c8b6d950394e3e2aea5758ad28030466 /mirrors
parentd80908e21e88c78262563f5852d81f2754fb5d82 (diff)
Set all attributes to default values on status URL fetch
We were missing two duration-related attributes here, causing some 500 errors to happen if we had cached status_data around that didn't agree with our current list of checked mirrors. Don't blow up on the JSON data fetch by ensuring we provide a value, even if it is out of date. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mirrors/utils.py b/mirrors/utils.py
index 0dd26ae0..be44121a 100644
--- a/mirrors/utils.py
+++ b/mirrors/utils.py
@@ -88,6 +88,8 @@ def annotate_url(url, url_data):
('success_count', 0),
('check_count', 0),
('completion_pct', None),
+ ('duration_avg', None),
+ ('duration_stddev', None),
('last_check', None),
('last_sync', None),
('delay', None),