From 1843d84107bef4518804c0b9a342f8397e6b2bc8 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/qpid@718233 13f79535-47bb-0310-9956-ffa450edef68 --- python/commands/qpid-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/commands') diff --git a/python/commands/qpid-config b/python/commands/qpid-config index 4b4bdd00b8..bd4aa613bc 100755 --- a/python/commands/qpid-config +++ b/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