summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/python')
-rwxr-xr-xqpid/python/commands/qpid-config7
1 files changed, 4 insertions, 3 deletions
diff --git a/qpid/python/commands/qpid-config b/qpid/python/commands/qpid-config
index 1b7b5171ed..ff3c7db46e 100755
--- a/qpid/python/commands/qpid-config
+++ b/qpid/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()