diff options
author | Ruben Rodriguez <ruben@trisquel.info> | 2015-06-25 11:14:03 -0500 |
---|---|---|
committer | Ruben Rodriguez <ruben@trisquel.info> | 2015-06-26 10:06:55 -0500 |
commit | e89d8f4c6f0f6193cca31b4399c39fc155735cac (patch) | |
tree | 9ede364399796454bda4df03a3a25ff05fc7f64f | |
parent | a10b9aebe42342bfc0dfc67897a0d5b65d83ce2d (diff) |
Handle errors and warnings with utf8 characters
-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 |