Skip to content

Commit

Permalink
Add check for None
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasFehring committed Jan 15, 2025
1 parent 37701e3 commit 9bbb9e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smac/acquisition/maximizer/local_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def _search(
while np.any(active):

# If the maximum number of steps is reached, stop the local search
if num_iters == self._max_steps:
if num_iters is not None and num_iters == self._max_steps:
break

num_iters += 1
Expand Down

0 comments on commit 9bbb9e3

Please sign in to comment.