Skip to content

Commit

Permalink
Merge pull request #492 from moyogo/removeOverlaps-errors
Browse files Browse the repository at this point in the history
pathops can raise TypeError, booleanOperations can raise ValueError
  • Loading branch information
khaledhosny authored Jan 8, 2025
2 parents 5b6a66b + 34fd5ca commit e17bf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/ufo2ft/filters/removeOverlaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def filter(self, glyph):
pen = getattr(glyph, self.penGetter)()
try:
self.union(contours, pen)
except self.Error:
except (self.Error, ValueError, TypeError):
logger.error("Failed to remove overlaps for %s", glyph.name)
raise
return True

0 comments on commit e17bf20

Please sign in to comment.