Skip to content

Commit

Permalink
Fix "no defects found" warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenam committed Dec 18, 2014
1 parent d578b6a commit 52651ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/obs/subaru/isr.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ def run(self, sensorRef):
defects = sensorRef.get('defects')
self.maskAndInterpDefect(ccdExposure,defects)
except RuntimeError:
print 'isr.py: WARNING: no defects found for ccd: ', \
sensorRef.dataId['ccd'], ' taiObs: ', sensorRef.dataId['taiObs']
self.log.log(self.log.WARN, "No defects found for ccd: %s taiObs: %s"
% (sensorRef.dataId['ccd'], sensorRef.dataId['taiObs']))
if self.config.qa.doWriteOss:
sensorRef.put(ccdExposure, "ossImage")
if self.config.qa.doThumbnailOss:
Expand Down

0 comments on commit 52651ae

Please sign in to comment.