mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
WIP
This commit is contained in:
committed by
Darío Lodeiros
parent
4bab8aaff0
commit
e2ff128336
@@ -49,7 +49,7 @@ class HttpRestRequestPms(HttpRestRequest):
|
||||
return wrapJsonException(
|
||||
Forbidden(ustr(e)), include_description=True, extra_info=extra_info
|
||||
)
|
||||
except (UserError, ValidationError) as e:
|
||||
except (UserError, ValidationError, ValueError) as e:
|
||||
extra_info = getattr(e, "rest_json_info", None)
|
||||
return wrapJsonException(
|
||||
BadRequest(e.args[0]), include_description=True, extra_info=extra_info
|
||||
|
||||
Reference in New Issue
Block a user