Bring back exception conversion to Forbidden

This commit is contained in:
Fabien Meghazi 2014-06-18 15:40:09 +02:00
parent 624f256f61
commit 4c785069bc
1 changed files with 4 additions and 1 deletions

View File

@ -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: