jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/647489 )
Change subject: [bugfix] Fix Attribute Error for HttpRequest ......................................................................
[bugfix] Fix Attribute Error for HttpRequest
Bug: T269821 Change-Id: I5ae4a1ecd4a880386dccde86b3cb03a43a7d4614 --- M scripts/weblinkchecker.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/weblinkchecker.py b/scripts/weblinkchecker.py index e441b5e..5f7ed34 100755 --- a/scripts/weblinkchecker.py +++ b/scripts/weblinkchecker.py @@ -599,7 +599,7 @@ .format(self.url, self.page.title())) raise
- if r.status_code_code != requests.codes.ok \ + if r.status_code != requests.codes.ok \ or r.status_code in self.HTTPignore: message = str(r.status_code) pywikibot.output('*{} links to {} - {}.'
pywikibot-commits@lists.wikimedia.org