From 46f5218974e4988bd04574b4e56c5094802e1839 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 9 Mar 2021 17:51:29 -0300 Subject: TMX Converter: Do not raise when a fatal error happen. 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. --- hercules/tmx_converter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3-60-g2f50