Added slightly better handling of ImportError in do001.

This commit is contained in:
Jeremy Fincher 2004-04-01 11:47:02 +00:00
parent d4c7db7a93
commit 3e1521fb8b

View File

@ -210,6 +210,8 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
try:
m = loadPluginModule(name)
loadPluginClass(irc, m)
except ImportError, e:
log.warning('Failed to load %s: %s', name, e)
except Exception, e:
log.exception('Failed to load %s:', name)
else: