Skip to content

Commit

Permalink
forgot some return statements
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
marcelmbn committed Feb 17, 2025
1 parent dd0a918 commit 6e265c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mindlessgen/prog/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,10 @@ def opt_cycles(self, opt_cycles: int):
"Optimization cycles can only be an integer or 'none'."
)
self._opt_cycles = None
return
if opt_cycles == 0:
self._opt_cycles = None
return
if opt_cycles < 0:
raise ValueError("Optimization cycles can only be 0 or greater.")
self._opt_cycles = opt_cycles
Expand Down

0 comments on commit 6e265c2

Please sign in to comment.