From 588f0988171216ed4f6e0c681c869f17f7bfd62d Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Tue, 28 Apr 2020 22:05:22 +0200 Subject: [PATCH] encode exception header (#675) --- inkstitch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inkstitch.py b/inkstitch.py index ff8f6c303..58d0f434f 100644 --- a/inkstitch.py +++ b/inkstitch.py @@ -53,10 +53,10 @@ else: print >> sys.stderr, shapely_errors.getvalue() if exception: - print >> sys.stderr, _("Ink/Stitch experienced an unexpected error.") + print >> sys.stderr, _("Ink/Stitch experienced an unexpected error.").encode("UTF-8") print >> sys.stderr, _("If you'd like to help, please file an issue at " "https://github.com/inkstitch/inkstitch/issues " - "and include the entire error description below:"), "\n" + "and include the entire error description below:").encode("UTF-8"), "\n" print >> sys.stderr, exception sys.exit(1) else: