Skip to content
Snippets Groups Projects
Commit 59a3f75b authored by Sanket Brahmbhatt's avatar Sanket Brahmbhatt
Browse files

[FIX] base,tools: raise usererror instead of a valueerror


This issue is generated when the user uploads an image of more than
50.0 million pixels, so error would be generated. But, currently it raises a
`ValueError` which results in traceback. So, we replace it with
`UserError` so the user has an idea about Image size or pixel being excessive.

closes odoo/odoo#118281

Sentry: - 4075426049
Signed-off-by: default avatarRémy Voet <ryv@odoo.com>
parent b5214e1d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment