From 6df8eed1429d8f58a26b799951d07a5f921a43d3 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 16 Dec 2003 21:01:59 +0000 Subject: [PATCH] Caught a previous uncaught exception. --- plugins/Google.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/Google.py b/plugins/Google.py index d35e28e02..4b0ef6cfe 100644 --- a/plugins/Google.py +++ b/plugins/Google.py @@ -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