diff --git a/src/math/SpatialCell.cc b/src/math/SpatialCell.cc index 7c060544b..840ea91b9 100644 --- a/src/math/SpatialCell.cc +++ b/src/math/SpatialCell.cc @@ -149,7 +149,7 @@ void SpatialCell::visitCandidates(CandidateVisitor *visitor, int const nMaxPerCe visitor->processCandidate((*candidate).get()); } catch (lsst::pex::exceptions::Exception &e) { if (ignoreExceptions) { - ; + --i; // Don't count the candidate if it raises an exception } else { LSST_EXCEPT_ADD(e, "Visiting candidate"); throw e;