Properly handle error messages from loading plugins.

This commit is contained in:
Jeremy Fincher 2004-08-23 22:15:54 +00:00
parent 87ff856d11
commit 5fe709f749

View File

@ -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: