jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/365225 )
Change subject: [IMPR] retry after a cirrussearch-too-busy-error
......................................................................
[IMPR] retry after a cirrussearch-too-busy-error
Bug: T170647
Change-Id: Iefed5270e6b51cfe7a6f70af81d35c49633901bf
---
M pywikibot/data/api.py
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Mpaa: Looks good to me, approved
Framawiki: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index acb0d19..7f4c80b 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -2188,6 +2188,9 @@
continue
raise NoUsername('Failed OAuth authentication for %s: %s'
% (self.site, info))
+ if code == 'cirrussearch-too-busy-error': # T170647
+ self.wait()
+ continue
# raise error
try:
# Due to bug T66958, Page's repr may return non ASCII bytes
--
To view, visit
https://gerrit.wikimedia.org/r/365225
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iefed5270e6b51cfe7a6f70af81d35c49633901bf
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: Framawiki <framawiki(a)tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>