summaryrefslogtreecommitdiff
path: root/hercules
diff options
context:
space:
mode:
Diffstat (limited to 'hercules')
-rwxr-xr-xhercules/tmx_converter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/hercules/tmx_converter.py b/hercules/tmx_converter.py
index 96a37d9..ed9d092 100755
--- a/hercules/tmx_converter.py
+++ b/hercules/tmx_converter.py
@@ -282,6 +282,7 @@ class ContentHandler(xml.sax.ContentHandler):
# Map width must be enough to fill the largest widescreen on market
if (self.width < 1920/TILESIZE):
print('Bad map width: %d (min. %d)' % (self.width, 1920/TILESIZE))
+ raise Exception('Invalid map width: %d (min. %d)' % (self.width, 1920/TILESIZE))
elif self.state is State.LAYER:
if name == u'data':
if attr.get(u'encoding','') not in (u'', u'csv'):