Skip to content

Commit

Permalink
Change non-fatal exception to log
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Krughoff committed Jan 28, 2017
1 parent 8c9c18f commit a514430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/ip/isr/assembleCcdTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def setGain(self, outExposure):
- adds some gain keywords to the metadata
"""
if outExposure.getMaskedImage().getVariance().getArray().max() == 0:
raise RuntimeError("Can't calculate the effective gain since the variance plane is set to zero")
self.log.info("Can't calculate the effective gain since the variance plane is set to zero")
ccd = outExposure.getDetector()
exposureMetadata = outExposure.getMetadata()
gain = 0.
Expand Down

0 comments on commit a514430

Please sign in to comment.