[interpolatable] Report bad contour in case of math error

This commit is contained in:
Behdad Esfahbod 2017-02-19 19:24:40 -06:00
parent c3b2e533e9
commit c8e68b2f4c

View File

@ -122,7 +122,7 @@ def test(glyphsets, glyphs=None, names=None):
try:
allVectors = []
for glyphset in glyphsets:
for glyphset,name in zip(glyphsets, names):
#print('.', end='')
glyph = glyphset[glyph_name]
@ -169,7 +169,8 @@ def test(glyphsets, glyphs=None, names=None):
except ValueError as e:
print('%s: math error %s; skipping glyph' % (glyph_name, e))
print('%s: %s: math error %s; skipping glyph.' % (glyph_name, name, e))
print(contour.value)
#raise
#for x in hist:
# print(x)