mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Fixed test, made sure that a failure in adding lookups doesn't keep the plugin from isntantiating.
This commit is contained in:
parent
f8f977386e
commit
4c681b274c
@ -114,8 +114,11 @@ class Lookup(callbacks.Privmsg):
|
|||||||
for (name, value) in group.getValues(fullNames=False):
|
for (name, value) in group.getValues(fullNames=False):
|
||||||
name = name.lower() # Just in case.
|
name = name.lower() # Just in case.
|
||||||
filename = value()
|
filename = value()
|
||||||
self.addDatabase(name, filename)
|
try:
|
||||||
self.addCommand(name)
|
self.addDatabase(name, filename)
|
||||||
|
self.addCommand(name)
|
||||||
|
except Exception, e:
|
||||||
|
self.log.warning('Couldn\'t add lookup %s: %s', name, e)
|
||||||
|
|
||||||
def _shrink(self, s):
|
def _shrink(self, s):
|
||||||
return utils.ellipsisify(s, 50)
|
return utils.ellipsisify(s, 50)
|
||||||
|
Loading…
Reference in New Issue
Block a user