From e788fe8726741e07e391b859deda796210667540 Mon Sep 17 00:00:00 2001 From: Nanashi Date: Sun, 22 May 2022 10:22:20 +0900 Subject: [PATCH] Retry on 524 status code --- discord/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/http.py b/discord/http.py index 96324f4be..8ae8aedd9 100644 --- a/discord/http.py +++ b/discord/http.py @@ -583,7 +583,7 @@ class HTTPClient: continue # Unconditional retry - if response.status in {500, 502, 504}: + if response.status in {500, 502, 504, 524}: await asyncio.sleep(1 + tries * 2) continue