diff options
Diffstat (limited to 'odoo/tools/safe_eval.py')
| -rw-r--r-- | odoo/tools/safe_eval.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/odoo/tools/safe_eval.py b/odoo/tools/safe_eval.py index 460eccccae8..262928874e4 100644 --- a/odoo/tools/safe_eval.py +++ b/odoo/tools/safe_eval.py @@ -322,16 +322,10 @@ def safe_eval(expr, globals_dict=None, locals_dict=None, mode="eval", nocopy=Fal c = test_expr(expr, _SAFE_OPCODES, mode=mode) try: return unsafe_eval(c, globals_dict, locals_dict) - except odoo.exceptions.except_orm: - raise - except odoo.exceptions.Warning: + except odoo.exceptions.UserError: raise except odoo.exceptions.RedirectWarning: raise - except odoo.exceptions.AccessDenied: - raise - except odoo.exceptions.AccessError: - raise except werkzeug.exceptions.HTTPException: raise except odoo.http.AuthenticationError: @@ -340,8 +334,6 @@ def safe_eval(expr, globals_dict=None, locals_dict=None, mode="eval", nocopy=Fal # Do not hide PostgreSQL low-level exceptions, to let the auto-replay # of serialized transactions work its magic raise - except odoo.exceptions.MissingError: - raise except ZeroDivisionError: raise except Exception as e: |
