mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Fixed the 'Alias raises a buttload of exceptions' bug.
This commit is contained in:
parent
246afc30e1
commit
7accc317a7
@ -166,7 +166,12 @@ class Alias(callbacks.Privmsg):
|
||||
# Adding the aliases requires an Irc. So the first time we get called
|
||||
# with an Irc, we add our aliases and then delete ourselves :)
|
||||
for (name, (alias, locked)) in self.aliases.iteritems():
|
||||
self.addAlias(irc, name, alias, locked)
|
||||
try:
|
||||
self.addAlias(irc, name, alias, locked)
|
||||
except Exception, e:
|
||||
self.log.exception('Exception when trying to add alias %s. '
|
||||
'Removing from the Alias database.' % name)
|
||||
del self.aliases[name]
|
||||
del self.__class__.__call__
|
||||
|
||||
def die(self):
|
||||
|
Loading…
Reference in New Issue
Block a user