diff --git a/python/lsst/pipe/tasks/calibrate.py b/python/lsst/pipe/tasks/calibrate.py index 134061733..be538b6f0 100644 --- a/python/lsst/pipe/tasks/calibrate.py +++ b/python/lsst/pipe/tasks/calibrate.py @@ -623,19 +623,15 @@ def run(self, exposure, background=None, exposureId=idGenerator.catalog_id, ) if self.config.doNormalizedCalibration: - if exposure.getInfo().getApCorrMap() is None: - self.log.warning("Image does not have valid aperture correction map for %r; " - "skipping normalized calibration flux", idGenerator) - else: - self.normalizedCalibrationFlux.run( - exposure=exposure, - catalog=sourceCat, - ) + self.normalizedCalibrationFlux.run( + exposure=exposure, + catalog=sourceCat, + ) if self.config.doApCorr: apCorrMap = exposure.getInfo().getApCorrMap() if apCorrMap is None: self.log.warning("Image does not have valid aperture correction map for %r; " - "skipping aperture correction", idGenerator) + "skipping aperture correction", idGenerator.catalog_id) else: self.applyApCorr.run( catalog=sourceCat,