From d77565a547ae8e5285c0a4fd8273346c63f838e6 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 7 Sep 2004 19:14:57 +0000 Subject: [PATCH] Show the AttributeError so we can see what the real problem is. --- src/Owner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Owner.py b/src/Owner.py index 19225d280..d32697b24 100644 --- a/src/Owner.py +++ b/src/Owner.py @@ -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'):