IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34972


Ignore:
Timestamp:
Jan 18, 2013, 10:23:47 AM (14 years ago)
Author:
eugene
Message:

test for empty rs.first() before calling getInt()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/jython/ipptopspsdb.py

    r34952 r34972  
    756756                WHERE host = '" + host + "' \
    757757                AND pid = " + str(pid))
     758
    758759    '''
    759760    Sets the config field for a set of loader clients
     
    831832        try:
    832833            rs = self.executeQuery(sql)
    833             rs.first()
     834            if rs.first() is False:  return False
    834835            if rs.getInt(1) == 1: return True
    835836            else: return False
Note: See TracChangeset for help on using the changeset viewer.