Skip to content
Snippets Groups Projects
Commit 4c785069 authored by Fabien Meghazi's avatar Fabien Meghazi
Browse files

Bring back exception conversion to Forbidden

parent 624f256f
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,10 @@ class ir_http(osv.AbstractModel):
try:
auth_method = self._authenticate(func.routing["auth"])
except Exception, e:
return self._handle_exception(e)
# force a Forbidden exception with the original traceback
return self._handle_exception(
convert_exception_to(
werkzeug.exceptions.Forbidden))
processing = self._postprocess_args(arguments)
if processing:
......
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