diff options
| author | Nans Lefebvre <len@odoo.com> | 2018-12-28 09:09:52 +0000 |
|---|---|---|
| committer | Nans Lefebvre <len@odoo.com> | 2018-12-28 14:27:11 +0000 |
| commit | 738e60c6ebf69bfbd7238fb35b4763fee4ca17d9 (patch) | |
| tree | e2f6b228e6ccf857c748fabd4cc9d453e72ddaa5 /addons/web/static/src/js | |
| parent | fe381f95b704085eb16b23ed74da7924ae0872e7 (diff) | |
[FIX] service: fix integrity error display
During the installation of a module, an IntegrityError can be raised,
e.g. if some module data already exists in the database
(as in the case of a module which uninstallation did not remove its data).
In Python2 it was possible to use such a psycopg2.IntegrityError with i[0]
to get its error message, while this raises an exception in Python3,
i.args[0] is needed.
As a result the log would contain an exception within an exception instead of
displaying an error to the user.
opw 1916374
closes odoo/odoo#29787
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions
