diff --git a/modopt/opt/algorithms.py b/modopt/opt/algorithms.py index 2ce25775..333f6791 100644 --- a/modopt/opt/algorithms.py +++ b/modopt/opt/algorithms.py @@ -233,8 +233,9 @@ def _iterations(self, max_iter, bar=None): self.converge: self._compute_metrics() - if self.converge and self.verbose: - print(' - Converged!') + if self.converge: + if self.verbose: + print(' - Converged!') break if not isinstance(bar, type(None)):