path: root/mirrors
diff options
authorDan McGee <>2013-12-23 11:51:04 -0600
committerDan McGee <>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 <>
Diffstat (limited to 'mirrors')
1 files changed, 2 insertions, 0 deletions
diff --git a/mirrors/ b/mirrors/
index 0dd26ae0..be44121a 100644
--- a/mirrors/
+++ b/mirrors/
@@ -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),