John Vandenberg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/264931
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(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/31/264931/1
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)
--
To view, visit https://gerrit.wikimedia.org/r/264931
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5f1b5bca386610c4f974358792d45ad01756c20d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits