jenkins-bot has submitted this change and it was merged.
Change subject: Remove unneeded catching of httplib ValueError ......................................................................
Remove unneeded catching of httplib ValueError
Bug: T124010 Change-Id: I5f1b5bca386610c4f974358792d45ad01756c20d --- M scripts/reflinks.py 1 file changed, 1 insertion(+), 4 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved MtDu: Looks good to me, but someone else must approve jenkins-bot: Verified
diff --git a/scripts/reflinks.py b/scripts/reflinks.py index 0474deb..03ac5ca 100755 --- a/scripts/reflinks.py +++ b/scripts/reflinks.py @@ -597,10 +597,7 @@ pywikibot.output(u'Can't retrieve page %s : %s' % (ref.url, e)) continue - except ValueError: - # Known bug of httplib, google for : - # "httplib raises ValueError reading chunked content" - continue + # remove <script>/<style>/comments/CDATA tags linkedpagetext = self.NON_HTML.sub(b'', linkedpagetext)
pywikibot-commits@lists.wikimedia.org