aboutsummaryrefslogtreecommitdiffstats
path: root/lcm/pub/nfvi/vim/vimadaptor.py
diff options
context:
space:
mode:
Diffstat (limited to 'lcm/pub/nfvi/vim/vimadaptor.py')
-rw-r--r--lcm/pub/nfvi/vim/vimadaptor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lcm/pub/nfvi/vim/vimadaptor.py b/lcm/pub/nfvi/vim/vimadaptor.py
index 65944b5e..1ad0a482 100644
--- a/lcm/pub/nfvi/vim/vimadaptor.py
+++ b/lcm/pub/nfvi/vim/vimadaptor.py
@@ -63,11 +63,11 @@ class VimAdaptor:
try:
self.authInfo = self.apiImpl.login(connectInfo)
except VimException as e:
- self.authInfo = [1, e.message]
- except Exception as ex:
+ self.authInfo = [1, e.args[0]]
+ except Exception as e:
logger.error(traceback.format_exc())
logger.error(str(sys.exc_info()))
- self.authInfo = [1, ex.message if ex.message else str(sys.exc_info())]
+ self.authInfo = [1, e.args[0] if e.args[0] else str(sys.exc_info())]
except:
logger.error(traceback.format_exc())
self.authInfo = [1, str(sys.exc_info())]