mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Let's catch errors in loading src/ plugins.
This commit is contained in:
parent
d0552fdcf2
commit
d7941fd9ac
@ -218,8 +218,14 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
||||
for s in ('Admin', 'Channel', 'Config', 'Misc', 'User'):
|
||||
if irc.getCallback(s) is None:
|
||||
self.log.info('Loading %s.' % s)
|
||||
try:
|
||||
m = loadPluginModule(s)
|
||||
loadPluginClass(irc, m)
|
||||
except Exception, e:
|
||||
self.log.exception('Error loading %s:', s)
|
||||
self.log.error('Error loading src/ plugin %s. '
|
||||
'This is rather serious; these plugins '
|
||||
'must always be loaded.', s)
|
||||
self.log.info('Loading plugins/ plugins.')
|
||||
for (name, value) in conf.supybot.plugins.getValues(fullNames=False):
|
||||
if name.lower() == 'owner':
|
||||
|
Loading…
Reference in New Issue
Block a user