summaryrefslogtreecommitdiff
path: root/qpid/python/commands
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-05-23 13:29:42 +0000
committerTed Ross <tross@apache.org>2008-05-23 13:29:42 +0000
commit2be65f56d7b82430679e068756cc3d10b0855d47 (patch)
tree158781d0ef6ec3eec38988d8ad1a87d9efcd52bc /qpid/python/commands
parent254678ecbf185f32e99a9aa11d30b2f4c5a925ec (diff)
downloadqpid-python-2be65f56d7b82430679e068756cc3d10b0855d47.tar.gz
qpid-tool fixed to cleanly handle brokers with management disabled
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@659535 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/commands')
-rwxr-xr-xqpid/python/commands/qpid-tool8
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/python/commands/qpid-tool b/qpid/python/commands/qpid-tool
index 478e362aaf..bf16faac42 100755
--- a/qpid/python/commands/qpid-tool
+++ b/qpid/python/commands/qpid-tool
@@ -164,16 +164,16 @@ try:
except socket.error, e:
print "Socket Error (%s):" % _host, e[1]
sys.exit (1)
-except Closed, e:
- if str(e).find ("Exchange not found") != -1:
- print "Management not enabled on broker: Use '-m yes' option on broker startup."
- sys.exit (1)
except IOError, e:
print "IOError: %d - %s: %s" % (e.errno, e.strerror, e.filename)
sys.exit (1)
except ConnectionFailed, e:
print "Connect Failed %d - %s" % (e[0], e[1])
sys.exit(1)
+except Exception, e:
+ if str(e).find ("Exchange not found") != -1:
+ print "Management not enabled on broker: Use '-m yes' option on broker startup."
+ sys.exit(1)
# Instantiate the CLI interpreter and launch it.
cli = Mcli (data, disp)