mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Let's catch errors in loading src/ plugins.
This commit is contained in:
parent
d0552fdcf2
commit
d7941fd9ac
10
src/Owner.py
10
src/Owner.py
@ -218,8 +218,14 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
for s in ('Admin', 'Channel', 'Config', 'Misc', 'User'):
|
for s in ('Admin', 'Channel', 'Config', 'Misc', 'User'):
|
||||||
if irc.getCallback(s) is None:
|
if irc.getCallback(s) is None:
|
||||||
self.log.info('Loading %s.' % s)
|
self.log.info('Loading %s.' % s)
|
||||||
m = loadPluginModule(s)
|
try:
|
||||||
loadPluginClass(irc, m)
|
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.')
|
self.log.info('Loading plugins/ plugins.')
|
||||||
for (name, value) in conf.supybot.plugins.getValues(fullNames=False):
|
for (name, value) in conf.supybot.plugins.getValues(fullNames=False):
|
||||||
if name.lower() == 'owner':
|
if name.lower() == 'owner':
|
||||||
|
Loading…
Reference in New Issue
Block a user