Skip to content
Snippets Groups Projects
Commit 7b121e75 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#120900

Sentry: - 4075426049
X-original-commit: 59a3f75b
Signed-off-by: default avatarRémy Voet <ryv@odoo.com>
parent 9a7ce074
No related branches found
No related tags found
Loading
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