Skip to content

Commit

Permalink
Merge pull request #354 from adhoc-dev/master-fix-for-17
Browse files Browse the repository at this point in the history
[FIX] core.exceptions.UserError --> Warning
  • Loading branch information
pedrobaeza authored Nov 23, 2023
2 parents d371a7e + ecd3200 commit accb9f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openupgradelib/openupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ def __exit__(self, exc_type, exc_value, traceback):
many2many = core.osv.fields.many2many
one2many = core.osv.fields.one2many

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

0 comments on commit accb9f8

Please sign in to comment.