Catch TTLibError raised when missing (or wrong) -y argument on a ttc file
diff --git a/Lib/fontTools/ttx.py b/Lib/fontTools/ttx.py
index aa5655e..db7b4d3 100644
--- a/Lib/fontTools/ttx.py
+++ b/Lib/fontTools/ttx.py
@@ -70,7 +70,7 @@
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
@@ -335,6 +335,8 @@
waitForKeyPress()
else:
raise
+ except TTLibError, e:
+ print "Error:",e
except:
if sys.platform == "win32":
import traceback