otTables: forgot to actually import TTLibError ugh
This commit is contained in:
parent
de266aa833
commit
580e3b3b50
@ -1238,8 +1238,10 @@ class COLR(BaseTable):
|
|||||||
try:
|
try:
|
||||||
clipBox = rec.Paint.computeClipBox(self, glyphSet, quantization)
|
clipBox = rec.Paint.computeClipBox(self, glyphSet, quantization)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
from fontTools.ttLib import TTLibError
|
||||||
|
|
||||||
raise TTLibError(
|
raise TTLibError(
|
||||||
"Failed to compute COLR ClipBox for {rec.BaseGlyph!r}"
|
f"Failed to compute COLR ClipBox for {rec.BaseGlyph!r}"
|
||||||
) from e
|
) from e
|
||||||
|
|
||||||
if clipBox is not None:
|
if clipBox is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user