Retry on 524 status code

This commit is contained in:
Nanashi
2022-05-21 21:22:20 -04:00
committed by GitHub
parent 7905d63f7c
commit 2bb7ed2092
+2 -2
View File
@@ -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