mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +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."""
|
"""Loads the plugin Class from the given module into the given Irc."""
|
||||||
try:
|
try:
|
||||||
cb = module.Class()
|
cb = module.Class()
|
||||||
except AttributeError:
|
except AttributeError, e:
|
||||||
raise callbacks.Error, 'This plugin module doesn\'t have a "Class" ' \
|
raise callbacks.Error, 'This plugin module doesn\'t have a "Class" ' \
|
||||||
'attribute to specify which plugin should be ' \
|
'attribute to specify which plugin should be ' \
|
||||||
'instantiated. If you didn\'t write this ' \
|
'instantiated. If you didn\'t write this ' \
|
||||||
'plugin, but received it with Supybot, file ' \
|
'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()
|
name = cb.name()
|
||||||
public = True
|
public = True
|
||||||
if hasattr(cb, 'public'):
|
if hasattr(cb, 'public'):
|
||||||
|
Loading…
Reference in New Issue
Block a user