Gerrit Patch Uploader has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391077 )
Change subject: reflinks handle FatalServerError & Server504Error [T180308] ...................................................................... reflinks handle FatalServerError & Server504Error [T180308] reflinks.py crashes when FatalServerError & Server504Error occurs. this patch add error handling to ignore both of them while checking for reference link title Change-Id: Ief433c2ab46376f430b01a51bc1820186bb61077 --- M scripts/reflinks.py 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/77/391077/1 diff --git a/scripts/reflinks.py b/scripts/reflinks.py index 6553876..e9c0243 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-MessageType: newchange Gerrit-Change-Id: Ief433c2ab46376f430b01a51bc1820186bb61077 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com> Gerrit-Reviewer: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits