summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/apply_threadlist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/apply_threadlist.py b/lib/extensions/apply_threadlist.py
index e17b4a3c..a9a49b7a 100644
--- a/lib/extensions/apply_threadlist.py
+++ b/lib/extensions/apply_threadlist.py
@@ -106,7 +106,7 @@ class ApplyThreadlist(InkstitchExtension):
colors = []
threads = pyembroidery.read(path).threadlist
for color in threads:
- if color.description.startswith("Cut"):
+ if color.description is not None and color.description.startswith("Cut"):
# there is a maximum of 4 needles, we can simply take the last element from the description string
colors.append([color.hex_color(), color.description[-1]])
else: