We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b3bb5 commit dd82c2bCopy full SHA for dd82c2b
src/huggingface_hub/utils/_http.py
@@ -425,7 +425,6 @@ def _should_retry(response: httpx.Response) -> bool:
425
if nb_tries > max_retries:
426
raise err
427
428
- # use rate limit reset if available, otherwise exponential backoff
429
if ratelimit_reset is not None:
430
actual_sleep = min(max_wait_time, float(ratelimit_reset))
431
logger.warning(f"Rate limited. Waiting {actual_sleep}s before retry [Retry {nb_tries}/{max_retries}].")
0 commit comments