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
--
To view, visit
https://gerrit.wikimedia.org/r/391077
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ief433c2ab46376f430b01a51bc1820186bb61077
Gerrit-Change-Number: 391077
Gerrit-PatchSet: 3
Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploader(a)gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Framawiki <framawiki(a)tools.wmflabs.org>
Gerrit-Reviewer: Gerrit Patch Uploader <gerritpatchuploader(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>