diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-08 01:38:09 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-08 01:38:09 -0300 |
commit | e6d66e59b38d849301161b56eccfcebb7f53b7b8 (patch) | |
tree | dc586b04723c89e9fcecdae2e039790396bd986c /game | |
parent | 328f0e5d65fff703318917af4acf2d103d105697 (diff) | |
download | renpy-e6d66e59b38d849301161b56eccfcebb7f53b7b8.tar.gz renpy-e6d66e59b38d849301161b56eccfcebb7f53b7b8.tar.bz2 renpy-e6d66e59b38d849301161b56eccfcebb7f53b7b8.tar.xz renpy-e6d66e59b38d849301161b56eccfcebb7f53b7b8.zip |
If the remote server errored as well, pretend that it was a rate limit and retry
Diffstat (limited to 'game')
-rw-r--r-- | game/update.rpy | 2 |
1 files changed, 1 insertions, 1 deletions
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) |