From e6d66e59b38d849301161b56eccfcebb7f53b7b8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 8 May 2021 01:38:09 -0300 Subject: If the remote server errored as well, pretend that it was a rate limit and retry --- game/update.rpy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game') diff --git a/game/update.rpy b/game/update.rpy index ad72e66..89cbf62 100644 --- a/game/update.rpy +++ b/game/update.rpy @@ -178,7 +178,7 @@ init python: r = requests.post(VAULT_HOST+"/steam_auth", json=auth, timeout=15.0) ## Intercept rate-limiting (429) and retry once - if (r.status_code == 429): + if (r.status_code == 429 or r.status_code == 500): status_update("Rate limited! Trying again 15s...", 85) time.sleep(5.0) status_update("Rate limited! Trying again 10s...", 85) -- cgit v1.2.3-70-g09d2