提交 5931c238 编写于 作者: A Amador Pahim

fix unicode handling in journal plugin

Instead of recording in the database the test name converted to str(),
which is expected to fail for non-ascii characters, let's record the
repr() of the test name so we don't have to handle the encoding here.

Reference: https://trello.com/c/SoFLGQVQSigned-off-by: NAmador Pahim <apahim@redhat.com>
上级 e6e74796
......@@ -89,7 +89,7 @@ class JournalResult(ResultEvents):
status = None
self.journal_cursor.execute(sql,
(str(state['name']),
(repr(state['name']),
datetime.datetime(1, 1, 1).now().isoformat(),
action,
status))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册