Author: gsim
Date: Mon Nov 17 04:35:05 2008
New Revision: 718233
URL: http://svn.apache.org/viewvc?rev=718233&view=rev
Log:
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.
Modified:
incubator/qpid/trunk/qpid/python/commands/qpid-config
Modified: incubator/qpid/trunk/qpid/python/commands/qpid-config
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/commands/qpid-config?rev=718233&r1=718232&r2=718233&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/commands/qpid-config (original)
+++ incubator/qpid/trunk/qpid/python/commands/qpid-config Mon Nov 17 04:35:05
2008
@@ -379,7 +379,7 @@
else:
Usage ()
except Exception,e:
- print "Failed:", e.message
+ print "Failed:", e.args[0]
sys.exit(1)
bm.Disconnect()