Revision: 4999 Author: wikipedian Date: 2008-02-10 00:34:37 +0000 (Sun, 10 Feb 2008)
Log Message: ----------- -google parameter: don't catch KeyboardInterrupt exceptions
Modified Paths: -------------- trunk/pywikipedia/pagegenerators.py
Modified: trunk/pywikipedia/pagegenerators.py =================================================================== --- trunk/pywikipedia/pagegenerators.py 2008-02-10 00:33:19 UTC (rev 4998) +++ trunk/pywikipedia/pagegenerators.py 2008-02-10 00:34:37 UTC (rev 4999) @@ -398,6 +398,8 @@ wikipedia.output(u'Querying Google, offset %i' % offset) data = google.doGoogleSearch(query, start = offset, filter = False) break + except KeyboardInterrupt: + raise except: # SOAPpy.Errors.HTTPError or SOAP.HTTPError (502 Bad Gateway) # can happen here, depending on the module used. It's not easy
pywikipedia-l@lists.wikimedia.org