Commit 3e3f02eb authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

we don't care UnicodeDecodeError in getting old object XML, otherwise we...

we don't care UnicodeDecodeError in getting old object XML, otherwise we cannot update erp5_xhtml_style business template with r39494 change.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39613 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3826cf96
...@@ -869,7 +869,8 @@ class ObjectTemplateItem(BaseTemplateItem): ...@@ -869,7 +869,8 @@ class ObjectTemplateItem(BaseTemplateItem):
try: try:
OFS.XMLExportImport.exportXML(old_object._p_jar, old_object._p_oid, old_io) OFS.XMLExportImport.exportXML(old_object._p_jar, old_object._p_oid, old_io)
old_obj_xml = old_io.getvalue() old_obj_xml = old_io.getvalue()
except ImportError, e: # module is already removed etc. except (ImportError, UnicodeDecodeError), e: # module is already
# removed etc.
old_obj_xml = '(%s: %s)' % (e.__class__.__name__, e) old_obj_xml = '(%s: %s)' % (e.__class__.__name__, e)
new_io.close() new_io.close()
old_io.close() old_io.close()
......
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