Changeset 4224

Show
Ignore:
Timestamp:
07/02/2008 12:15:11 PM (2 months ago)
Author:
uwe_grauer
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/dApp.py

    r4222 r4224  
    889889    def closeConnections(self): 
    890890        """Cleanup as the app is exiting.""" 
    891         for conn in self.dbConnections: 
    892             try: 
    893                 self.dbConnections[conn].close() 
    894             except StandardError, e: 
    895                 dabo.errorLog.write(_("Failed to close connection. Error: %s") % e) 
    896      
    897      
     891        for key, conn in self.dbConnections.items(): 
     892            conn.close() 
     893            del self.dbConnections[key] 
     894           
     895 
    898896    def addConnectInfo(self, ci, name=None): 
    899897        if name is None: