[lorax][master/f22-branch][PATCH] Don't crash on error messages containing Unicode characters

Martin Kolman mkolman at redhat.com
Tue Apr 14 15:36:52 UTC 2015


Signed-off-by: Martin Kolman <mkolman at redhat.com>
---
 src/pylorax/ltmpl.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pylorax/ltmpl.py b/src/pylorax/ltmpl.py
index 5056ed3..28947ce 100644
--- a/src/pylorax/ltmpl.py
+++ b/src/pylorax/ltmpl.py
@@ -538,7 +538,7 @@ class LoraxTemplateRunner(object):
                 base.do_transaction(display=display)
             except BaseException as e:
                 logger.error("The transaction process has ended abruptly: %s", e)
-                queue.put(('quit', str(e)))
+                queue.put(('quit', unicode(e)))
 
         def report_progress(queue):
             (token, msg) = queue.get()
-- 
2.3.4



More information about the anaconda-patches mailing list