jenkins-bot has submitted this change and it was merged.
Change subject: Adding hostname and protocol to the URL of captcha, It's really
important
......................................................................
Adding hostname and protocol to the URL of captcha, It's really important
Change-Id: Ie4466deb3862876e78e4092c9c378c13c8ff93c6
---
M pywikibot/site.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py
index 13f0cd5..933eb14 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -2774,7 +2774,7 @@
continue
elif "url" in captcha:
import webbrowser
- webbrowser.open(captcha["url"])
+ webbrowser.open(self.family.protocol(self.code) + '://' +
self.family.hostname(self.code) + captcha["url"])
req['captchaword'] = cap_answerwikipedia.input(
"Please view CAPTCHA in your browser, then type answer here:")
continue
--
To view, visit
https://gerrit.wikimedia.org/r/91878
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie4466deb3862876e78e4092c9c378c13c8ff93c6
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: jenkins-bot