diff --git a/python/lsst/ip/diffim/dipoleFitTask.py b/python/lsst/ip/diffim/dipoleFitTask.py index 45444a606..a8f1b28b4 100644 --- a/python/lsst/ip/diffim/dipoleFitTask.py +++ b/python/lsst/ip/diffim/dipoleFitTask.py @@ -862,6 +862,12 @@ def fitDipole(self, source, tol=1e-7, rel_weight=0.1, # usually around 0.1 -- the minimum flux allowed -- i.e. bad fit. if fitResult.params['flux'].value <= 1.: + self.log.debug("Fitted flux too small for id=%d; ModelResult.message='%s'", + source["id"], fitResult.message) + return None, fitResult + if not fitResult.result.errorbars: + self.log.debug("Could not estimate error bars for id=%d; ModelResult.message='%s'", + source["id"], fitResult.message) return None, fitResult # TODO: We could include covariances, which could be derived from