Commit 7d32a4f9 authored by Yusei Tahara's avatar Yusei Tahara

erp5_core: Fix unicode bug on ZODB History view.

Some objects become unicode when %s is applied and may cause
UnicodeDecodeError, thus use %r insead.
parent d12f3483
......@@ -16,7 +16,7 @@ def beautifyChange(change_dict):
six.text_type(property_value, 'utf-8')
except UnicodeDecodeError:
property_value = '(binary)'
change_list.append('%s:%s' % (property_name, property_value))
change_list.append('%s:%r' % (property_name, property_value))
return change_list
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment