From ada7796794b8202e0b345d3c3553e04a240677fc Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 23 Apr 2020 12:33:09 -0300 Subject: The one who should be breaking is not tmx_converter but testxml --- hercules/tmx_converter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hercules') diff --git a/hercules/tmx_converter.py b/hercules/tmx_converter.py index 30e1a31..0393a39 100755 --- a/hercules/tmx_converter.py +++ b/hercules/tmx_converter.py @@ -282,8 +282,8 @@ class ContentHandler(xml.sax.ContentHandler): heigherror=False # Map width must be enough to fill the largest widescreen on market if (self.width < WIDESCREEN/TILESIZE): - print('Bad map width: %d (min. %d)' % (self.width, WIDESCREEN/TILESIZE)) - raise Exception('Invalid map width: %d (min. %d)' % (self.width, WIDESCREEN/TILESIZE)) + print('\n\nERROR: invalid map width: %d (min. %d)' % (self.width, WIDESCREEN/TILESIZE)) + #raise SyntaxError('width') elif self.state is State.LAYER: if name == u'data': if attr.get(u'encoding','') not in (u'', u'csv'): -- cgit v1.2.3-70-g09d2