From c2354b9106ca5738c3f31e60ded1025473aaa605 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 17 Nov 2008 12:35:05 +0000 Subject: 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 --- qpid/python/commands/qpid-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/python') 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() -- cgit v1.2.1