Skip to content

Commit

Permalink
Merge branch 'master' into fix-fillsubs-typeerror
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Mar 22, 2024
2 parents cfe954e + 532db98 commit a7884c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -35,6 +35,8 @@ These changes are available on the `master` branch, but have not yet been releas

- Changed the type of `Guild.bitrate_limit` to `int`.
([#2387](https://github.com/Pycord-Development/pycord/pull/2387))
- HTTP requests that fail with a 503 status are now re-tried.
([#2395](https://github.com/Pycord-Development/pycord/pull/2395))

## [2.5.0] - 2024-03-02

Expand Down
4 changes: 2 additions & 2 deletions discord/http.py
Expand Up @@ -357,8 +357,8 @@ async def request(

continue

# we've received a 500, 502, or 504, unconditional retry
if response.status in {500, 502, 504}:
# we've received a 500, 502, 503, or 504, unconditional retry
if response.status in {500, 502, 503, 504}:
await asyncio.sleep(1 + tries * 2)
continue

Expand Down

0 comments on commit a7884c3

Please sign in to comment.