From 503d63a01522d32649d848e543b9ed27a8e08842 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 18 Jan 2014 23:53:41 -0500 Subject: [PATCH] More sensible. --- tasks/afc_statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/afc_statistics.py b/tasks/afc_statistics.py index 070f385..e0a0a1d 100644 --- a/tasks/afc_statistics.py +++ b/tasks/afc_statistics.py @@ -520,7 +520,7 @@ class AFCStatistics(Task): content = res["query"]["pages"].values()[0]["revisions"][0]["*"] except KeyError: if tries == 0: - raise KeyError() + raise sleep(5) return self._get_revision_content(revid, tries=tries - 1) self.revision_cache[revid] = content