Skip to content

Commit a7884c3

Browse files
authored
Merge branch 'master' into fix-fillsubs-typeerror
2 parents cfe954e + 532db98 commit a7884c3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ These changes are available on the `master` branch, but have not yet been releas
3535

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

3941
## [2.5.0] - 2024-03-02
4042

discord/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ async def request(
357357

358358
continue
359359

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

0 commit comments

Comments
 (0)