Changeset 35177 for trunk/ippToPsps/jython/loader.py
- Timestamp:
- Feb 17, 2013, 3:37:35 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/loader.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/loader.py
r35175 r35177 43 43 44 44 # connect to scratch database 45 scratchDbs = ['1', '2', '3'] 46 for dbVersion in scratchDbs: 47 self.scratchDb = ScratchDb(self.logger, self.config, dbVersion) 48 if not self.config.test and self.scratchDb.anyOtherConnections(): 49 self.logger.errorPair("This scratch Db is already in use", self.scratchDb.dbName) 50 self.scratchDb.disconnect() 51 continue 52 break 53 54 if not self.scratchDb.connected: 45 self.scratchDb = ScratchDb(self.logger, self.config) 46 if not self.config.test and self.scratchDb.anyOtherConnections(): 47 self.logger.errorPair("This scratch Db is already in use", self.scratchDb.dbName) 48 self.scratchDb.disconnect() 55 49 self.exitProgram("Cannot connect to a scratch database") 56 50 raise
Note:
See TracChangeset
for help on using the changeset viewer.
