mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-03 13:00:41 +01:00
This should fix bug #1031279, xml.sax exception when calling google commands.
This commit is contained in:
parent
a87660ade2
commit
e48b78787a
@ -199,9 +199,16 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
callBefore = ['URL']
|
callBefore = ['URL']
|
||||||
regexps = ['googleSnarfer', 'googleGroups']
|
regexps = ['googleSnarfer', 'googleGroups']
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(Google, self).__init__()
|
self.__parent = super(Google, self)
|
||||||
|
self.__parent.__init__()
|
||||||
google.setLicense(self.registryValue('licenseKey'))
|
google.setLicense(self.registryValue('licenseKey'))
|
||||||
|
|
||||||
|
def callCommand(self, name, irc, msg, *L, **kwargs):
|
||||||
|
try:
|
||||||
|
self.__parent.callCommand(name, irc, msg, *L, **kwargs)
|
||||||
|
except xml.sax.SAXReaderNotAvailable, e:
|
||||||
|
irc.error('No XML parser available.')
|
||||||
|
|
||||||
_colorGoogles = {}
|
_colorGoogles = {}
|
||||||
def _getColorGoogle(self, m):
|
def _getColorGoogle(self, m):
|
||||||
s = m.group(1)
|
s = m.group(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user