From e89d8f4c6f0f6193cca31b4399c39fc155735cac Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Thu, 25 Jun 2015 11:14:03 -0500 Subject: Handle errors and warnings with utf8 characters --- export_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'export_json.py') 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 -- cgit v1.2.3