summaryrefslogtreecommitdiff
path: root/python/commands
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2009-01-09 14:18:23 +0000
committerTed Ross <tross@apache.org>2009-01-09 14:18:23 +0000
commit29efbadc913a3386ba5877512e0a8887504d4a42 (patch)
tree14532ffaea7920581aa01e4217a7b524004e559f /python/commands
parente0ad51233c158f7ca8d84b90b45b23937da6fd1f (diff)
downloadqpid-python-29efbadc913a3386ba5877512e0a8887504d4a42.tar.gz
Fixed code problem for Python versions less than 2.5
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@733041 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/commands')
-rwxr-xr-xpython/commands/qpid-config7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/commands/qpid-config b/python/commands/qpid-config
index 1b7b5171ed..ff3c7db46e 100755
--- a/python/commands/qpid-config
+++ b/python/commands/qpid-config
@@ -101,7 +101,8 @@ class BrokerManager:
self.brokerAgent = a
def Disconnect(self):
- self.qmf.delBroker(self.broker)
+ if self.broker:
+ self.qmf.delBroker(self.broker)
def Overview (self):
exchanges = self.qmf.getObjects(_class="exchange", _agent=self.brokerAgent)
@@ -387,5 +388,5 @@ except KeyboardInterrupt:
except Exception,e:
print "Failed:", e.args
sys.exit(1)
-finally:
- bm.Disconnect()
+
+bm.Disconnect()