1
0
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:
Nanashi 2022-05-22 10:22:20 +09:00 committed by GitHub
parent 7905d63f7c
commit 2bb7ed2092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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