Revision: 4624 Author: rotem Date: 2007-12-01 11:09:28 +0000 (Sat, 01 Dec 2007)
Log Message: ----------- Bug 1842287 reports a WindowsError is possible when opening the captcha image in the browser (in Windows, hopefully). It may be an error in python configuration. Catching it and using the fallback question.
Modified Paths: -------------- trunk/pywikipedia/userinterfaces/terminal_interface.py
Modified: trunk/pywikipedia/userinterfaces/terminal_interface.py =================================================================== --- trunk/pywikipedia/userinterfaces/terminal_interface.py 2007-12-01 10:17:01 UTC (rev 4623) +++ trunk/pywikipedia/userinterfaces/terminal_interface.py 2007-12-01 11:09:28 UTC (rev 4624) @@ -282,4 +282,6 @@ return wikipedia.input(u'What is the solution of the CAPTCHA that is shown in your web browser?') except ImportError, e: return wikipedia.input(u'What is the solution of the CAPTCHA at %s ?' % url) + except WindowsError: + return wikipedia.input(u'What is the solution of the CAPTCHA at %s ?' % url)