Skip to content

Commit

Permalink
v0.5.0 — Smarter retrying cutoff
Browse files Browse the repository at this point in the history
- When a 403 response is received with a `Retry-After` or `x-ratelimit-reset` header that would result in the next retry attempt being after `total_wait` is exceeded, don't retry.
  • Loading branch information
jwodder committed Dec 17, 2023
1 parent 363338f commit 0ee224a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
v0.5.0 (in development)
-----------------------
v0.5.0 (2023-12-17)
-------------------
- When a 403 response is received with a `Retry-After` or `x-ratelimit-reset`
header that would result in the next retry attempt being after `total_wait`
is exceeded, don't retry.
Expand Down
2 changes: 1 addition & 1 deletion src/ghreq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
from typing import TYPE_CHECKING, Any, Literal, overload
import requests

__version__ = "0.5.0.dev1"
__version__ = "0.5.0"
__author__ = "John Thorvald Wodder II"
__author_email__ = "ghreq@varonathe.org"
__license__ = "MIT"
Expand Down

0 comments on commit 0ee224a

Please sign in to comment.