qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tr...@apache.org
Subject svn commit: r733041 - /qpid/trunk/qpid/python/commands/qpid-config
Date Fri, 09 Jan 2009 14:18:24 GMT
Author: tross
Date: Fri Jan  9 06:18:23 2009
New Revision: 733041

URL: http://svn.apache.org/viewvc?rev=733041&view=rev
Log:
Fixed code problem for Python versions less than 2.5

Modified:
    qpid/trunk/qpid/python/commands/qpid-config

Modified: qpid/trunk/qpid/python/commands/qpid-config
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/commands/qpid-config?rev=733041&r1=733040&r2=733041&view=diff
==============================================================================
--- qpid/trunk/qpid/python/commands/qpid-config (original)
+++ qpid/trunk/qpid/python/commands/qpid-config Fri Jan  9 06:18:23 2009
@@ -101,7 +101,8 @@
                 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 Exception,e:
     print "Failed:", e.args
     sys.exit(1)
-finally:
-    bm.Disconnect()
+
+bm.Disconnect()



Mime
View raw message