Ladsgroup has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/91871


Change subject: minor and important fix of webbrowser
......................................................................

minor and important fix of webbrowser

When system wants a cpatcha, you need to import webbrowser in order to be able 
to open it!

Change-Id: I875217b03d9a9dc47d4a5bdc20ea9f10cc26d223
---
M pywikibot/site.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/71/91871/1

diff --git a/pywikibot/site.py b/pywikibot/site.py
index e203f0b..13f0cd5 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -2773,6 +2773,7 @@
                         req['captchaword'] = input(captcha["question"])
                         continue
                     elif "url" in captcha:
+                        import webbrowser
                         webbrowser.open(captcha["url"])
                         req['captchaword'] = cap_answerwikipedia.input(
 "Please view CAPTCHA in your browser, then type answer here:")

-- 
To view, visit https://gerrit.wikimedia.org/r/91871
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I875217b03d9a9dc47d4a5bdc20ea9f10cc26d223
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

Reply via email to