summaryrefslogtreecommitdiff
path: root/odoo/tools/xml_utils.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2017-05-10 16:34:36 +0200
committerXavier Morel <xmo@odoo.com>2017-05-12 16:15:40 +0200
commit07ab8b6cd2b44aeb91dadc35adf5f4b19f1399b2 (patch)
treee11bc7b07e68ff4ee0a07c1a786abd2f3abe27a8 /odoo/tools/xml_utils.py
parent3dd3790597e84186d922b798aa8bb4650513ce4b (diff)
[FIX] P3: Exception.message removed
Diffstat (limited to 'odoo/tools/xml_utils.py')
-rw-r--r--odoo/tools/xml_utils.py2
1 files changed, 1 insertions, 1 deletions
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))