otTables: forgot to actually import TTLibError ugh

This commit is contained in:
Cosimo Lupo 2023-03-10 19:22:58 +00:00
parent de266aa833
commit 580e3b3b50
No known key found for this signature in database
GPG Key ID: DF65A8A5A119C9A8

View File

@ -1238,8 +1238,10 @@ class COLR(BaseTable):
try:
clipBox = rec.Paint.computeClipBox(self, glyphSet, quantization)
except Exception as e:
from fontTools.ttLib import TTLibError
raise TTLibError(
"Failed to compute COLR ClipBox for {rec.BaseGlyph!r}"
f"Failed to compute COLR ClipBox for {rec.BaseGlyph!r}"
) from e
if clipBox is not None: