Merge pull request #28 from olivierberten/ttc
Catch TTLibError raised when missing (or wrong) -y argument on a ttc file
This commit is contained in:
commit
5f875e76d6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user