summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/extensions/fill_to_stroke.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/fill_to_stroke.py b/lib/extensions/fill_to_stroke.py
index 5672fb69..28c1f651 100644
--- a/lib/extensions/fill_to_stroke.py
+++ b/lib/extensions/fill_to_stroke.py
@@ -104,7 +104,7 @@ class FillToStroke(InkstitchExtension):
pass
# remove empty groups
for parent in set(parents):
- if not parent.getchildren():
+ if parent is not None and not parent.getchildren():
parent.getparent().remove(parent)
def _get_high_res_polygon(self, polygon):