IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32326 for trunk/ippToPsps


Ignore:
Timestamp:
Sep 5, 2011, 9:51:02 AM (15 years ago)
Author:
rhenders
Message:

checking for error, and aborting if necessary, after call to reateEmptyPspsTables() method

File:
1 edited

Legend:

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

    r32304 r32326  
    372372             self.tablesToExport.append(table.name)
    373373
    374          self.alterPspsTables();
     374         return self.alterPspsTables();
    375375
    376376    '''
     
    519519    '''
    520520    Creates and publishes a batch
     521    TODO all methids call below should throw exceptions on failure
    521522    '''
    522523    def run(self):
     
    527528            return
    528529
    529         self.createEmptyPspsTables()
     530        if not self.createEmptyPspsTables():
     531            self.logger.error("Aborting this batch due to (hopefully) previously reported errors")
     532            self.ippToPspsDb.updateProcessed(self.batchID, -1)
     533            return
     534
    530535        self.importIppTables()
    531536        if not self.populatePspsTables():
Note: See TracChangeset for help on using the changeset viewer.