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
pywikibot-commits@lists.wikimedia.org