From 5eff1ab9bf0c3820c8b90e18efee1dfc773d08fc Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 23 Dec 2013 11:51:04 -0600 Subject: 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 --- mirrors/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mirrors/utils.py b/mirrors/utils.py index 0dd26ae..be44121 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), -- cgit v1.2.3-24-g4f1b