Skip to content

Commit

Permalink
[FIX] core.exceptions.UserError --> Warning
Browse files Browse the repository at this point in the history
The deprecated warning was removed on 17 (odoo/odoo@d200dcf)
  • Loading branch information
jjscarafia committed Nov 14, 2023
1 parent d371a7e commit 2f36577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openupgradelib/openupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __exit__(self, exc_type, exc_value, traceback):
many2many = core.osv.fields.many2many
one2many = core.osv.fields.one2many

WarningError = core.exceptions.Warning
WarningError = core.exceptions.UserError
if version_info[0] >= 7:
plaintext2html = tools.mail.plaintext2html
if version_info[0] >= 8:
Expand Down

0 comments on commit 2f36577

Please sign in to comment.