mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +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:
|
try:
|
||||||
m = loadPluginModule(name)
|
m = loadPluginModule(name)
|
||||||
loadPluginClass(irc, m)
|
loadPluginClass(irc, m)
|
||||||
|
except callbacks.Error, e:
|
||||||
|
# This is just an error message.
|
||||||
|
log.warning(str(e))
|
||||||
except ImportError, e:
|
except ImportError, e:
|
||||||
log.warning('Failed to load %s: %s', name, e)
|
log.warning('Failed to load %s: %s', name, e)
|
||||||
if name in self._srcPlugins:
|
if name in self._srcPlugins:
|
||||||
|
Loading…
Reference in New Issue
Block a user