2to3 -f raise
[sfa.git] / sfa / managers / managerwrapper.py
index 58a0527..da8c98f 100644 (file)
@@ -24,7 +24,10 @@ class ManagerWrapper:
             # to the actual method calls anyway
             self.manager = manager(config)
         else:
-            raise SfaAPIError,"Argument to ManagerWrapper must be a module or class"
+            # that's what happens when there's something wrong with the db
+            # or any bad stuff of that kind at startup time
+            logger.log_exc("Failed to create a manager, startup sequence is broken")
+            raise SfaAPIError("Argument to ManagerWrapper must be a module or class")
         self.interface = interface
         
     def __getattr__(self, method):