- module = getattr(self,classname)()
- logger.info("%s : %s"%(message,module))
- return module
- except:
- logger.log_exc_critical(message)
-
+ module_or_class = getattr(self, classname)()
+ logger.debug("%s : %s" % (message, module_or_class))
+ # this gets passed to ManagerWrapper that will
+ # call the class constructor if it's a class,
+ # or use the module as is if it's a module
+ # so bottom line is, don't try the constructor here
+ return module_or_class
+ except Exception:
+ logger.log_exc(message)
+ exit(1)
+