IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 2, 2015, 2:42:04 PM (11 years ago)
Author:
eugene
Message:

clean up some test vebosity

File:
1 edited

Legend:

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

    r38951 r39027  
    470470
    471471        sql = "SELECT COUNT(*) FROM " + table
    472         try:
    473             rs = self.executeQuery(sql) 
    474             rs.first()
    475             return rs.getInt(1)
    476         except:
     472        rs = self.executeQuery(sql) 
     473
     474        if not rs.first():
    477475            self.logger.exception("Could not count rows for table: '" + table + "'")
    478476            return -1
     477
     478        return rs.getInt(1)
    479479
    480480    '''
Note: See TracChangeset for help on using the changeset viewer.