Skip to content
Snippets Groups Projects
Commit 28b5cbb3 authored by Alex (roal)'s avatar Alex (roal)
Browse files

[FIX] tools: fix TypeError in literal_eval


A TypeError is thrown when an AST node is passed to `literal_eval`
because a string is expected and the object has no len().

Check the type of the expression and make sure it's a string before
calling len() on it.

closes odoo/odoo#126551

Signed-off-by: default avatarVranckx Florian (flvr) <flvr@odoo.com>
parent 3dfbdc40
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