Ladsgroup has uploaded a new change for review.
https://gerrit.wikimedia.org/r/91878
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(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/78/91878/1
diff --git a/pywikibot/site.py b/pywikibot/site.py
index 13f0cd5..8bcb955 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.family.hostname() + 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: newchange
Gerrit-Change-Id: Ie4466deb3862876e78e4092c9c378c13c8ff93c6
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits