summaryrefslogtreecommitdiff
path: root/game/01_init.rpy
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-07 23:46:48 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-07 23:46:48 -0300
commit10f79752c0446ce5939eb12260f65343846a567d (patch)
tree916dd8d2da20ecf4a31e85fac1a08bbfff6ba503 /game/01_init.rpy
parentfd73aef79ac834a035ab6840309f9cafa3dca1ac (diff)
downloadclient-10f79752c0446ce5939eb12260f65343846a567d.tar.gz
client-10f79752c0446ce5939eb12260f65343846a567d.tar.bz2
client-10f79752c0446ce5939eb12260f65343846a567d.tar.xz
client-10f79752c0446ce5939eb12260f65343846a567d.zip
Respond better to fatal errors
Diffstat (limited to 'game/01_init.rpy')
-rw-r--r--game/01_init.rpy7
1 files changed, 6 insertions, 1 deletions
diff --git a/game/01_init.rpy b/game/01_init.rpy
index bcdd844..9b12e74 100644
--- a/game/01_init.rpy
+++ b/game/01_init.rpy
@@ -328,7 +328,7 @@ init -3 python:
#############################################################################
# URL3 Function
def GAME_UPDATER():
- global tr_uptodate
+ global tr_uptodate, tr_fatality
tr_uptodate=False
# If no version is provided, we are using default files
@@ -346,6 +346,7 @@ init -3 python:
# TODO: Should we set a "ver"?
if (int(persistent.version) < ver):
+ try:
# TODO: Check if the server have SSL support
stdout("Downloading updated game data...")
@@ -393,6 +394,10 @@ init -3 python:
persistent.version=ver
stdout("Update complete")
+ except:
+ tr_fatality = False
+ traceback.print_exc()
+ stdout("[FATAL] Unable to update JSON files; Aborted")
# Download server news
# Handled by GAME_LOADER