mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-13 09:19:48 +00:00
Retry on 524 status code
This commit is contained in:
parent
7905d63f7c
commit
2bb7ed2092
@ -486,8 +486,8 @@ class HTTPClient:
|
||||
|
||||
continue
|
||||
|
||||
# we've received a 500, 502, or 504, unconditional retry
|
||||
if response.status in {500, 502, 504}:
|
||||
# we've received a 500, 502, 504, or 524, unconditional retry
|
||||
if response.status in {500, 502, 504, 524}:
|
||||
await asyncio.sleep(1 + tries * 2)
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user