EmbroidePy / pyembroidery

pyembroidery library for reading and writing a variety of embroidery formats.
MIT License
181 stars 33 forks source link

Thread __str__ TypeError: not enough arguments for format string #77

Closed andreymal closed 4 years ago

andreymal commented 4 years ago
for s in pattern.get_as_stitchblock(): thread = s[1]; print(thread)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/andreymal/.local/lib/python3.7/site-packages/pyembroidery/EmbThread.py", line 150, in __str__
    return "EmbThread %s %s" % self.description, self.hex_color()
TypeError: not enough arguments for format string
tatarize commented 4 years ago

It needs brackets to insure it's treated like a tuple. I'll fix it since I'm pushing out a new version right away. And check to make sure I didn't make this error elsewhere.

tatarize commented 4 years ago

This should be fixed by #76.

tatarize commented 4 years ago

@andreymal thank you for bringing this to my attention.