mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Properly handle error messages from loading plugins.
This commit is contained in:
parent
87ff856d11
commit
5fe709f749
@ -254,6 +254,9 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
||||
try:
|
||||
m = loadPluginModule(name)
|
||||
loadPluginClass(irc, m)
|
||||
except callbacks.Error, e:
|
||||
# This is just an error message.
|
||||
log.warning(str(e))
|
||||
except ImportError, e:
|
||||
log.warning('Failed to load %s: %s', name, e)
|
||||
if name in self._srcPlugins:
|
||||
|
Loading…
Reference in New Issue
Block a user