summaryrefslogtreecommitdiff
path: root/hercules
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-09 17:51:29 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-09 17:51:29 -0300
commit46f5218974e4988bd04574b4e56c5094802e1839 (patch)
tree3ea6d6c28476f4ae4773f72cfa2dd2daec3b0a44 /hercules
parentb7747eb98eb82c724c614c8b82637309afacbfa6 (diff)
downloadevol-tools-46f5218974e4988bd04574b4e56c5094802e1839.tar.gz
evol-tools-46f5218974e4988bd04574b4e56c5094802e1839.tar.bz2
evol-tools-46f5218974e4988bd04574b4e56c5094802e1839.tar.xz
evol-tools-46f5218974e4988bd04574b4e56c5094802e1839.zip
TMX Converter: Do not raise when a fatal error happen.HEADmaster
Instead, silently ignore and keep doing its own thing. This should prevent test server from being killed because make maps could not finish cleanly. It'll still raise an error if environment is set to CI. However, do note it won't work as it is supposed to - the map will be unacessible.
Diffstat (limited to 'hercules')
-rwxr-xr-xhercules/tmx_converter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/hercules/tmx_converter.py b/hercules/tmx_converter.py
index 3264797..c78e94f 100755
--- a/hercules/tmx_converter.py
+++ b/hercules/tmx_converter.py
@@ -28,6 +28,7 @@ import sys
import os
import posixpath
import xml.sax
+import traceback
dump_all = False # wall of text
check_mobs = True # mob_db.txt
@@ -497,7 +498,7 @@ def main(argv):
pass
else:
print("\n\nUnexpected error in map %s.\n" % base)
- raise
+ traceback.print_exc()
map_conf.write(")\n")
sys.stdout.write('\033[2K\nDone: %i maps converted.\n' % map_count)
sys.stdout.flush()