summaryrefslogtreecommitdiff
path: root/odoo/tools/xml_utils.py
diff options
context:
space:
mode:
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))