Caught a previous uncaught exception.

This commit is contained in:
Jeremy Fincher 2003-12-16 21:01:59 +00:00
parent 7b983bc921
commit 6df8eed142
1 changed files with 4 additions and 0 deletions

View File

@ -125,6 +125,10 @@ def search(log, *args, **kwargs):
except SOAP.faultType, e:
log.exception('Uncaught SOAP error:')
raise callbacks.Error, 'Invalid Google license key.'
except xml.sax.SAXException, e:
log.exception('Uncaught SAX error:')
raise callbacks.Error, 'Google returned an unparseable response. ' \
'The full traceback has been logged.'
class Google(callbacks.PrivmsgCommandAndRegexp, configurable.Mixin):
threaded = True