Skip to content

Commit

Permalink
Merge pull request #4658 from not522/fix-rdb-index
Browse files Browse the repository at this point in the history
Fix index of `n_retries += 1` in `RDBStorage`
  • Loading branch information
HideakiImamura committed May 9, 2023
2 parents 42f1116 + 1719e6d commit 76532ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optuna/storages/_rdb/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def _create_new_trial(
if n_retries > 2:
raise

n_retries += 1
n_retries += 1

if template_trial:
frozen = copy.deepcopy(template_trial)
Expand Down

0 comments on commit 76532ac

Please sign in to comment.