Skip to content

Commit 2077b97

Browse files
committed
Catch another flavor of PSF fail in maglim calculation
1 parent 41aed21 commit 2077b97

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

python/lsst/ip/diffim/subtractImages.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,9 @@ def _calculateMagLim(self, exposure, nsigma=5.0, fallbackPsfSize=None):
671671
try:
672672
psf = exposure.getPsf()
673673
psf_shape = psf.computeShape(psf.getAveragePosition())
674-
except (lsst.pex.exceptions.InvalidParameterError, afwDetection.InvalidPsfError):
674+
except (lsst.pex.exceptions.InvalidParameterError,
675+
afwDetection.InvalidPsfError,
676+
lsst.pex.exceptions.RangeError):
675677
if fallbackPsfSize is not None:
676678
self.log.info("Unable to evaluate PSF, using fallback FWHM %f", fallbackPsfSize)
677679
psf_area = np.pi*(fallbackPsfSize/2)**2

0 commit comments

Comments
 (0)