Revision: 5549 Author: cosoleto Date: 2008-06-10 10:51:19 +0000 (Tue, 10 Jun 2008)
Log Message: ----------- print the message 'Error in opening web browser' too
Modified Paths: -------------- trunk/pywikipedia/userinterfaces/terminal_interface.py
Modified: trunk/pywikipedia/userinterfaces/terminal_interface.py =================================================================== --- trunk/pywikipedia/userinterfaces/terminal_interface.py 2008-06-10 10:27:16 UTC (rev 5548) +++ trunk/pywikipedia/userinterfaces/terminal_interface.py 2008-06-10 10:51:19 UTC (rev 5549) @@ -288,6 +288,5 @@ webbrowser.open(url) return wikipedia.input(u'What is the solution of the CAPTCHA that is shown in your web browser?') except: - pass - - return wikipedia.input(u'What is the solution of the CAPTCHA at %s ?' % url) + wikipedia.output(u'Error in opening web browser: %s' % sys.exc_info()[0]) + return wikipedia.input(u'What is the solution of the CAPTCHA at %s ?' % url)