diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-09 14:05:52 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-09 14:05:52 -0300 |
commit | 9d4f4e1ae2c00f6b01aeff5b8f91e7ca10844cbb (patch) | |
tree | d8d146bed2d5d53f477f9b2ed44efaae5d1eecce | |
parent | ae656b4a32ac66399360b1ab58079f6c8b47e850 (diff) | |
download | renpy-9d4f4e1ae2c00f6b01aeff5b8f91e7ca10844cbb.tar.gz renpy-9d4f4e1ae2c00f6b01aeff5b8f91e7ca10844cbb.tar.bz2 renpy-9d4f4e1ae2c00f6b01aeff5b8f91e7ca10844cbb.tar.xz renpy-9d4f4e1ae2c00f6b01aeff5b8f91e7ca10844cbb.zip |
Attempt to be more fault-tolerant to world_pass errors.
Still getting weird fancy URLLIB errors, though
-rw-r--r-- | game/renpy.rpy | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/game/renpy.rpy b/game/renpy.rpy index 92ccc39..a5b3681 100644 --- a/game/renpy.rpy +++ b/game/renpy.rpy @@ -94,13 +94,16 @@ label start: auth = {"vaultId": vaultId, "token": vaultToken, "world": persistent.serverlist[_return]["UUID"]} - r=requests.post(VAULT_HOST+"/world_pass", json=auth, timeout=15.0) - if r.status_code != 200: - stdout("Get World Auth - Returned error code %d" % r.status_code) - PWD="" - else: - auth2=r.json() - PWD=" -U %s -P %s" % (auth2["user"], auth2["pass"]) + PWD="" + try: + r=requests.post(VAULT_HOST+"/world_pass", json=auth, timeout=15.0) + if r.status_code != 200: + stdout("Get World Auth - Returned error code %d" % r.status_code) + else: + auth2=r.json() + PWD=" -U %s -P %s" % (auth2["user"], auth2["pass"]) + except: + pass ## Minimize to tray if set if not renpy.mobile and persistent.iconify: |