IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 12, 2014, 4:10:18 PM (12 years ago)
Author:
eugene
Message:

merge changes from branches/eam_branches/ipp-20140717

File:
1 edited

Legend:

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

    r36715 r37246  
    119119
    120120        try:
    121             # XXX EAM : test output
    122             rs = self.executeQuery(sql)
    123             while (rs.next()):
    124                rows.append([rs.getInt(1), rs.getFloat(2), rs.getFloat(3)])
    125             rs.close()
     121            rs = self.executeQuery(sql)
     122
    126123        except:
    127124            self.logger.exception("Can't query for ids in DVO")
    128125            self.logger.infoPair("failed sql:", sql)
    129             return rows
     126            sys.exit(1)
     127
     128        while (rs.next()):
     129            rows.append([rs.getInt(1), rs.getFloat(2), rs.getFloat(3)])
     130
     131        rs.close()
    130132
    131133        self.logger.debug("Found %d items in DVO database '%s' for stage='%s'" % (len(rows), dvoDb, stage))
     
    339341
    340342
    341         # XXX EAM : test output
    342343        self.logger.infoPair("smf files:", files)
    343344        if len(files) < 1: return None
Note: See TracChangeset for help on using the changeset viewer.