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 {} - {}.'

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/647489
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I5ae4a1ecd4a880386dccde86b3cb03a43a7d4614
Gerrit-Change-Number: 647489
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to