jenkins-bot has submitted this change and it was merged.
Change subject: Another http error to retry: 503 Service unavaillable
......................................................................
Another http error to retry: 503 Service unavaillable
Change-Id: I93d67f7e2e713b1b500c5cd7b609b81967684694
---
M pywikibot/comms/http.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/comms/http.py b/pywikibot/comms/http.py
index ea70fc5..df2911a 100644
--- a/pywikibot/comms/http.py
+++ b/pywikibot/comms/http.py
@@ -138,7 +138,7 @@
raise PageNotFound(
u'Page %s could not be retrieved. Check your virus wall.'
% url)
- elif e.code in [500, 502, 504]:
+ elif e.code in [500, 502, 503, 504]:
pywikibot.output(u'HTTPError: %s %s' % (e.code, e.msg))
if retry:
retry_attempt += 1
--
To view, visit
https://gerrit.wikimedia.org/r/130283
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I93d67f7e2e713b1b500c5cd7b609b81967684694
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: DrTrigon <dr.trigon(a)surfeu.ch>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>