Skip to content

Commit

Permalink
Added 503 status code to retry mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
D4rk-S0ul authored and Lulalaby committed Mar 17, 2024
1 parent 0c68e5f commit 1e6e9a7
Showing 1 changed file with 2 additions and 2 deletions.
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 1e6e9a7

Please sign in to comment.