jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/391077 )
Change subject: [FIX] reflinks: handle FatalServerError & Server504Error ......................................................................
[FIX] reflinks: handle FatalServerError & Server504Error
reflinks.py crashes when FatalServerError & Server504Error occurs. This patch add error handling to ignore both of them while checking for reference link title
Bug: T180308 Change-Id: Ief433c2ab46376f430b01a51bc1820186bb61077 --- M scripts/reflinks.py 1 file changed, 3 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/reflinks.py b/scripts/reflinks.py index 1d4d69f..0d1df4a 100755 --- a/scripts/reflinks.py +++ b/scripts/reflinks.py @@ -599,7 +599,9 @@ except (URLError, socket.error, IOError, - httplib.error) as e: + httplib.error, + pywikibot.FatalServerError, + pywikibot.Server504Error) as e: pywikibot.output(u'Can't retrieve page %s : %s' % (ref.url, e)) continue
pywikibot-commits@lists.wikimedia.org