diff --git a/Lib/fontTools/ttx.py b/Lib/fontTools/ttx.py index d5d6c9b3d..a85e41603 100644 --- a/Lib/fontTools/ttx.py +++ b/Lib/fontTools/ttx.py @@ -70,7 +70,7 @@ import sys import os import getopt import re -from fontTools.ttLib import TTFont +from fontTools.ttLib import TTFont, TTLibError from fontTools.ttLib.tables.otBase import OTLOffsetOverflowError from fontTools.ttLib.tables.otTables import fixLookupOverFlows, fixSubTableOverFlows from fontTools.misc.macCreatorType import getMacCreatorAndType @@ -337,6 +337,8 @@ def main(args): waitForKeyPress() else: raise + except TTLibError, e: + print "Error:",e except: if sys.platform == "win32": import traceback