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 committed Mar 15, 2024
1 parent 7c06892 commit 12e4c67
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 12e4c67

Please sign in to comment.