diff --git a/openerp/http.py b/openerp/http.py index 6ee9aefe87b..1d35c989143 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -270,7 +270,8 @@ class WebRequest(object): to abitrary responses. Anything returned (except None) will be used as response.""" self._failed = exception # prevent tx commit - if not isinstance(exception, NO_POSTMORTEM): + if not isinstance(exception, NO_POSTMORTEM) \ + and not isinstance(exception, werkzeug.exceptions.HTTPException): openerp.tools.debugger.post_mortem( openerp.tools.config, sys.exc_info()) raise