Changeset 34972

Show
Ignore:
Timestamp:
01/18/2013 10:23:47 AM (6 years ago)
Author:
eugene
Message:

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

Files:
1 modified

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