Skip to content

Commit

Permalink
default attempt number 0 -> 1
Browse files Browse the repository at this point in the history
  • Loading branch information
2timesjay committed Jan 14, 2025
1 parent 7ba5fe7 commit f48d5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tenacity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def next_action(rs: "RetryCallState") -> None:
rs.idle_for += sleep
self.statistics["idle_for"] = self.statistics.get("idle_for", 0) + sleep
self.statistics["attempt_number"] = (
self.statistics.get("attempt_number", 0) + 1
self.statistics.get("attempt_number", 1) + 1
)

self._add_action_func(next_action)
Expand Down

0 comments on commit f48d5e5

Please sign in to comment.