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 d179559db75..df4c5669644 100644
--- a/odoo/tools/xml_utils.py
+++ b/odoo/tools/xml_utils.py
@@ -10,7 +10,7 @@ def check_with_xsd(tree_or_str, xsd_path):
xsd_schema = etree.XMLSchema(xml_schema_doc)
try:
xsd_schema.assertValid(tree_or_str)
- except etree.DocumentInvalid, xml_errors:
+ 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]))