summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2021-03-27 16:55:08 +0100
committerGitHub <noreply@github.com>2021-03-27 16:55:08 +0100
commit71a5d4772a64891223b30eda1d97deea5f8926e0 (patch)
treed1860da4fa0e4b6b46a0c47d377a2342f5a3a9dd /lib/extensions
parent2ccdd5cc8dd16cc5a9b8883466a2034caa81ac08 (diff)
Catch Palette IndexError (#1100)
* thread palette catch indexerror * export threadlist with utf-8
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/zip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/zip.py b/lib/extensions/zip.py
index fedf8c65..eacf2260 100644
--- a/lib/extensions/zip.py
+++ b/lib/extensions/zip.py
@@ -55,7 +55,7 @@ class Zip(InkstitchExtension):
svg.write(etree.tostring(document).decode('utf-8'))
elif format == 'threadlist':
output_file = os.path.join(path, "%s_%s.txt" % (base_file_name, _("threadlist")))
- output = open(output_file, 'w')
+ output = open(output_file, 'w', encoding='utf-8')
output.write(self.get_threadlist(stitch_plan, base_file_name))
output.close()
else: