Catch and raise the exception when GetSession Fails.
[bootmanager.git] / source / BootAPI.py
index d69755b..6d16967 100644 (file)
@@ -79,8 +79,8 @@ def create_auth_structure( vars, call_params ):
             auth = auth_session
 
         except Exception, e:
-            print e
-            pass
+            # NOTE: BM has failed to authenticate utterly.
+            raise BootManagerAuthenticationException, "%s" % e
 
     return auth