Skip to content

Commit fa869b4

Browse files
committed
Retry PyPI 429 responses in the version check
A rate limit is as transient as a 5xx, so it gets the same backoff instead of failing the required check on the first attempt. Bump to 2.15.11, since main has released 2.15.10.
1 parent 6f9c823 commit fa869b4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/version-check.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ jobs:
7979
# otherwise block the merge until someone reruns the job. Retry
8080
# network errors, timeouts, rate limits (429) and 5xx responses, and
8181
# if PyPI still can't be read, say so instead of failing with a bare
82-
# traceback that looks like a version problem. OSError covers URLError, timeouts and SSL
83-
# errors; HTTPException covers a response cut off mid-read, which
84-
# urllib doesn't wrap in URLError.
82+
# traceback that looks like a version problem. OSError covers
83+
# URLError, timeouts and SSL errors; HTTPException covers a response
84+
# cut off mid-read, which urllib doesn't wrap in URLError.
8585
pypi_url = "https://pypi.org/pypi/socketsecurity/json"
8686
attempts = 4
8787
pypi_data = None

0 commit comments

Comments
 (0)