From 580e3b3b50f59f94210227651725d67f1807a34d Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Fri, 10 Mar 2023 19:22:58 +0000 Subject: [PATCH] otTables: forgot to actually import TTLibError ugh --- Lib/fontTools/ttLib/tables/otTables.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/fontTools/ttLib/tables/otTables.py b/Lib/fontTools/ttLib/tables/otTables.py index c023f8844..5cabd4b4f 100644 --- a/Lib/fontTools/ttLib/tables/otTables.py +++ b/Lib/fontTools/ttLib/tables/otTables.py @@ -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: