diff options
-rw-r--r-- | export.py | 2 | ||||
-rw-r--r-- | export_json.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 |