IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 25, 2011, 1:53:40 PM (15 years ago)
Author:
rhenders
Message:

cleaner exit from failed batch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/batch.py

    r31920 r31934  
    332332              self.logger.exception("Problem writing table '" + table.name + "' to the database")
    333333
    334 
    335334      self.logger.infoPair("Done. Imported", "%d tables" % count)
    336335      self.indexIppTables()
     
    408407    def getIDsFromDVO(self):
    409408
     409        if self.scratchDb.getRowCount("dvoMeta") < 1:
     410            self.logger.error("No DVO IDs found in dvoMeta")
     411            return False
     412
    410413        # TODO path to DVO prog hardcoded temporarily
    411414        cmd = "../src/dvograbber " + self.dvoLocation
     
    434437    def run(self):
    435438
    436         if not self.everythingOK: return
     439        if not self.everythingOK:
     440            self.logger.error("Aborting this batch due to (hopefully) previously reported errors")
     441            return
    437442
    438443        self.createEmptyPspsTables()
Note: See TracChangeset for help on using the changeset viewer.