diff --git a/python/lsst/pipe/tasks/calibrateImage.py b/python/lsst/pipe/tasks/calibrateImage.py index bb040076b..5fd8136a6 100644 --- a/python/lsst/pipe/tasks/calibrateImage.py +++ b/python/lsst/pipe/tasks/calibrateImage.py @@ -434,8 +434,9 @@ def runQuantum(self, butlerQC, inputRefs, outputRefs): catalogs=[result.psf_stars, result.stars], task=self ) - butlerQC.put(result, outputRefs) raise error from e + finally: + butlerQC.put(result, outputRefs) @timeMethod def run(self, *, exposures, result=None):