From 07ab8b6cd2b44aeb91dadc35adf5f4b19f1399b2 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 10 May 2017 16:34:36 +0200 Subject: [FIX] P3: Exception.message removed --- odoo/tools/xml_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odoo/tools/xml_utils.py') diff --git a/odoo/tools/xml_utils.py b/odoo/tools/xml_utils.py index df4c5669644..b7c03a87f53 100644 --- a/odoo/tools/xml_utils.py +++ b/odoo/tools/xml_utils.py @@ -13,4 +13,4 @@ def check_with_xsd(tree_or_str, xsd_path): except etree.DocumentInvalid as xml_errors: #import UserError only here to avoid circular import statements with tools.func being imported in exceptions.py from odoo.exceptions import UserError - raise UserError('\n'.join([e.message for e in xml_errors.error_log])) + raise UserError('\n'.join(str(e) for e in xml_errors.error_log)) -- cgit v1.2.3