summaryrefslogtreecommitdiff
path: root/targetcli/ui_node.py
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2012-04-19 17:36:43 -0700
committerAndy Grover <agrover@redhat.com>2012-04-19 17:36:43 -0700
commit06332729c2a3a0b914c153e7d8159ce723c47c5b (patch)
tree9e2d07c0dc47c376c93bc5cba17999aeb757a5aa /targetcli/ui_node.py
parent1e941e2bbbc9729b9a253d13e876bd2082c48a95 (diff)
downloadtargetcli-06332729c2a3a0b914c153e7d8159ce723c47c5b.tar.gz
Exception.message is deprecated
use str(exception) instead. Signed-off-by: Andy Grover <agrover@redhat.com>
Diffstat (limited to 'targetcli/ui_node.py')
-rw-r--r--targetcli/ui_node.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/targetcli/ui_node.py b/targetcli/ui_node.py
index 1a4e90e..5f1a53e 100644
--- a/targetcli/ui_node.py
+++ b/targetcli/ui_node.py
@@ -83,7 +83,7 @@ class UINode(ConfigNode):
result = ConfigNode.execute_command(self, command,
pparams, kparams)
except RTSLibError, msg:
- self.shell.log.error(msg.message)
+ self.shell.log.error(str(msg))
else:
self.shell.log.debug("Command %s succeeded." % command)
return result