Skip to content

Commit 0ee224a

Browse files
committed
v0.5.0 — Smarter retrying cutoff
- 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.
1 parent 363338f commit 0ee224a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
v0.5.0 (in development)
2-
-----------------------
1+
v0.5.0 (2023-12-17)
2+
-------------------
33
- When a 403 response is received with a `Retry-After` or `x-ratelimit-reset`
44
header that would result in the next retry attempt being after `total_wait`
55
is exceeded, don't retry.

src/ghreq/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
from typing import TYPE_CHECKING, Any, Literal, overload
5050
import requests
5151

52-
__version__ = "0.5.0.dev1"
52+
__version__ = "0.5.0"
5353
__author__ = "John Thorvald Wodder II"
5454
__author_email__ = "ghreq@varonathe.org"
5555
__license__ = "MIT"

0 commit comments

Comments
 (0)