summaryrefslogtreecommitdiff
path: root/lib/elements
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2019-06-24 18:54:43 +0200
committerGitHub <noreply@github.com>2019-06-24 18:54:43 +0200
commite81e819602a3823ec344d412ba2e5213349fb2c4 (patch)
tree3e5aa917df85313af70cd351273c33204c378d5b /lib/elements
parent54179d76bc4338c5089a6d826e4b36790b202e45 (diff)
fix unicode error message
Diffstat (limited to 'lib/elements')
-rw-r--r--lib/elements/element.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py
index a2658d88..e85657cd 100644
--- a/lib/elements/element.py
+++ b/lib/elements/element.py
@@ -283,5 +283,6 @@ class EmbroideryElement(object):
# L10N used when showing an error message to the user such as
# "Some Path (path1234): error: satin column: One or more of the rungs doesn't intersect both rails."
- print >> sys.stderr, "%s: %s %s" % (name.encode("UTF-8"), _("error:"), message.encode("UTF-8"))
+ error_msg = "%s: %s %s" % (name, _("error:"), message)
+ print >> sys.stderr, "%s" % (error_msg.encode("UTF-8"))
sys.exit(1)