|
@@ -520,7 +520,7 @@ class AFCStatistics(Task): |
|
|
content = res["query"]["pages"].values()[0]["revisions"][0]["*"] |
|
|
content = res["query"]["pages"].values()[0]["revisions"][0]["*"] |
|
|
except KeyError: |
|
|
except KeyError: |
|
|
if tries == 0: |
|
|
if tries == 0: |
|
|
raise KeyError() |
|
|
|
|
|
|
|
|
raise |
|
|
sleep(5) |
|
|
sleep(5) |
|
|
return self._get_revision_content(revid, tries=tries - 1) |
|
|
return self._get_revision_content(revid, tries=tries - 1) |
|
|
self.revision_cache[revid] = content |
|
|
self.revision_cache[revid] = content |
|
|