Skip to content

Commit

Permalink
pathops can raise TypeError, booleanOperations can raise ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
moyogo committed Mar 26, 2021
1 parent 776be4b commit 34fd5ca
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 34fd5ca

Please sign in to comment.