Skip to content

Commit dd82c2b

Browse files
committed
nit
1 parent 31b3bb5 commit dd82c2b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/huggingface_hub/utils/_http.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ def _should_retry(response: httpx.Response) -> bool:
425425
if nb_tries > max_retries:
426426
raise err
427427

428-
# use rate limit reset if available, otherwise exponential backoff
429428
if ratelimit_reset is not None:
430429
actual_sleep = min(max_wait_time, float(ratelimit_reset))
431430
logger.warning(f"Rate limited. Waiting {actual_sleep}s before retry [Retry {nb_tries}/{max_retries}].")

0 commit comments

Comments
 (0)