Revision: 5548 Author: cosoleto Date: 2008-06-10 10:27:16 +0000 (Tue, 10 Jun 2008)
Log Message: ----------- Fixed bug #1900272 Login Captcha in FreeBSD (login.py)
Modified Paths: -------------- trunk/pywikipedia/userinterfaces/terminal_interface.py
Modified: trunk/pywikipedia/userinterfaces/terminal_interface.py =================================================================== --- trunk/pywikipedia/userinterfaces/terminal_interface.py 2008-06-10 09:54:50 UTC (rev 5547) +++ trunk/pywikipedia/userinterfaces/terminal_interface.py 2008-06-10 10:27:16 UTC (rev 5548) @@ -287,8 +287,7 @@ wikipedia.output(u'Opening CAPTCHA in your web browser...') webbrowser.open(url) 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) + except: + pass
+ return wikipedia.input(u'What is the solution of the CAPTCHA at %s ?' % url)