dabo Commit
Revision 4224
Date: 2008-07-02 12:15:11 -0700 (Wed, 02 Jul 2008)
Author: Uwe_Grauer
Trac: http://svn.dabodev.com/trac/dabo/changeset/4224

Changed:
U   trunk/dabo/dApp.py

Log:
Changed dApp.closeConnections() to not catch any exceptions.


Diff:
Modified: trunk/dabo/dApp.py
===================================================================
--- trunk/dabo/dApp.py  2008-07-02 18:55:01 UTC (rev 4223)
+++ trunk/dabo/dApp.py  2008-07-02 19:15:11 UTC (rev 4224)
@@ -888,13 +888,11 @@
                
        def closeConnections(self):
                """Cleanup as the app is exiting."""
-               for conn in self.dbConnections:
-                       try:
-                               self.dbConnections[conn].close()
-                       except StandardError, e:
-                               dabo.errorLog.write(_("Failed to close 
connection. Error: %s") % e)
-       
-       
+               for key, conn in self.dbConnections.items():
+                       conn.close()
+                       del self.dbConnections[key]
+             
+
        def addConnectInfo(self, ci, name=None):
                if name is None:
                        try:




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to