aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--export.py2
-rw-r--r--export_json.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/export.py b/export.py
index 41643a9..5f358cb 100644
--- a/export.py
+++ b/export.py
@@ -376,7 +376,7 @@ def export_all_to_directory(data, outputdir):
# Force errors.
templates = list(templates)
except ExportFailure, e:
- warn('export failed: %s: %s' % (name, e.message))
+ warn('export failed: %s: %s' % (name.encode('utf-8').strip(), e.message.encode('utf-8').strip()))
yield(name, templates)
diff --git a/export_json.py b/export_json.py
index 0ba10d6..a24d00f 100644
--- a/export_json.py
+++ b/export_json.py
@@ -17,7 +17,7 @@ def main():
# Force errors.
templates = list(templates)
except export.ExportFailure, e:
- export.warn('export failed: %s: %s' % (name, e.message))
+ export.warn('export failed: %s: %s' % (name.encode('utf-8').strip(), e.message.encode('utf-8').strip()))
for template in templates:
tname = template.name