summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-11-17 12:35:05 +0000
committerGordon Sim <gsim@apache.org>2008-11-17 12:35:05 +0000
commitc2354b9106ca5738c3f31e60ded1025473aaa605 (patch)
tree9ccd1f8a0d453e47794d5d2a6499d689fbc7be0a /qpid/python
parente37656ebe6afe9611cf8ff0ec2e458117d4a129f (diff)
downloadqpid-python-c2354b9106ca5738c3f31e60ded1025473aaa605.tar.gz
Fix to error handling, without this I was seeing "AttributeError: Exception instance has no attribute 'message'" when e.g. the address specified did not match an available broker.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@718233 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rwxr-xr-xqpid/python/commands/qpid-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/python/commands/qpid-config b/qpid/python/commands/qpid-config
index 4b4bdd00b8..bd4aa613bc 100755
--- a/qpid/python/commands/qpid-config
+++ b/qpid/python/commands/qpid-config
@@ -379,7 +379,7 @@ try:
else:
Usage ()
except Exception,e:
- print "Failed:", e.message
+ print "Failed:", e.args[0]
sys.exit(1)
bm.Disconnect()