mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 21:29:24 +01:00
Show the AttributeError so we can see what the real problem is.
This commit is contained in:
parent
846bf9102b
commit
d77565a547
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user