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