Show the AttributeError so we can see what the real problem is.

This commit is contained in:
James Vega 2004-09-07 19:14:57 +00:00
parent 846bf9102b
commit d77565a547
1 changed files with 2 additions and 2 deletions

View File

@ -108,12 +108,12 @@ def loadPluginClass(irc, module, register=None):
"""Loads the plugin Class from the given module into the given Irc."""
try:
cb = module.Class()
except AttributeError:
except AttributeError, e:
raise callbacks.Error, 'This plugin module doesn\'t have a "Class" ' \
'attribute to specify which plugin should be ' \
'instantiated. If you didn\'t write this ' \
'plugin, but received it with Supybot, file ' \
'a bug with us about this error.'
'a bug with us about this error. %s.' % e
name = cb.name()
public = True
if hasattr(cb, 'public'):