Skip to content

Commit 95e859b

Browse files
committed
Fix the previous lesser Befucklement
1 parent fbdba0d commit 95e859b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classy_blocks/optimize/iteration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def converged(self) -> bool:
121121
report("Iteration limit hit, stopping optimization.")
122122
return True
123123

124-
if self.iterations[-1].final_quality < TOL:
124+
if len(self.iterations) > 0 and self.iterations[-1].final_quality < TOL:
125125
print("Nothing left to optimize.")
126126
return True
127127

0 commit comments

Comments
 (0)