Revision: 6773 Author: cosoleto Date: 2009-04-30 12:08:54 +0000 (Thu, 30 Apr 2009)
Log Message: ----------- Fixed incorrect reference to CaptchaError.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-04-30 11:04:13 UTC (rev 6772) +++ trunk/pywikipedia/wikipedia.py 2009-04-30 12:08:54 UTC (rev 6773) @@ -4564,13 +4564,13 @@ answer = input('What is the answer to the captcha "%s" ?' % match.group('question')) else: if not config.solve_captcha: - raise wikipedia.CaptchaError(id) + raise CaptchaError(id) url = self.protocol() + '://' + self.hostname() + self.captcha_image_address(id) answer = ui.askForCaptcha(url) return {'id':id, 'answer':answer} Recaptcha = re.compile('<script type="text/javascript" src="http://api%5C.recaptcha%5C.net/%5B%5E%22%5D*%22%3E</script>') if Recaptcha.search(data): - raise wikipedia.CaptchaError('We have been prompted for a ReCaptcha, but pywikipedia does not yet support ReCaptchas') + raise CaptchaError('We have been prompted for a ReCaptcha, but pywikipedia does not yet support ReCaptchas') return None
def postForm(self, address, predata, sysop=False, cookies = None):
pywikipedia-svn@lists.wikimedia.org