Ensure was retrying one more time than max_retries

This commit is contained in:
Ask Solem 2013-04-17 15:36:18 +01:00
parent b639fef1f5
commit 1a169dfb36
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ def retry_over_time(fun, catch, args=[], kwargs={}, errback=None,
try:
return fun(*args, **kwargs)
except catch, exc:
if max_retries is not None and retries > max_retries:
if max_retries is not None and retries >= max_retries:
raise
if callback:
callback()