diff options
Diffstat (limited to 'game/renpy.rpy')
-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: |