summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-21 01:11:42 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-21 01:11:42 -0300
commit1618c4b39dc1e154f5ce6a97594e34affa7dd39c (patch)
tree2a879d6f9635f7fd194e47f98051e4d2a15540e6
parentdb40c946ba3d096e7257fedc6b73c07eebab4b43 (diff)
downloadclient-1618c4b39dc1e154f5ce6a97594e34affa7dd39c.tar.gz
client-1618c4b39dc1e154f5ce6a97594e34affa7dd39c.tar.bz2
client-1618c4b39dc1e154f5ce6a97594e34affa7dd39c.tar.xz
client-1618c4b39dc1e154f5ce6a97594e34affa7dd39c.zip
Catch NameError and handle it differently (to avoid exceptions on exceptions)
-rw-r--r--game/script.rpy5
1 files changed, 5 insertions, 0 deletions
diff --git a/game/script.rpy b/game/script.rpy
index 353e582..ee8294b 100644
--- a/game/script.rpy
+++ b/game/script.rpy
@@ -62,6 +62,11 @@ label login:
try:
message=int(message)
dlcode=copy.copy(message)
+ except NameError:
+ traceback.print_exc()
+ print("AN ERROR HAPPENED AT LOGIN TIME")
+ stdout("A NameError has also been encountered.")
+ message=-1
except:
print("AN ERROR HAPPENED AT LOGIN TIME")
stdout("Invalid: "+str(message))