pyramid_cubicweb/bwcompat.py
changeset 11499 60a504740951
parent 11496 500615e26063
child 11505 eca6387f5b87
equal deleted inserted replaced
11498:a8aaff87c1fc 11499:60a504740951
    82             except cubicweb.web.RemoteCallFailed as ex:
    82             except cubicweb.web.RemoteCallFailed as ex:
    83                 # XXX The default pyramid error handler (or one that we provide
    83                 # XXX The default pyramid error handler (or one that we provide
    84                 # for this exception) should be enough
    84                 # for this exception) should be enough
    85                 # content = self.appli.ajax_error_handler(req, ex)
    85                 # content = self.appli.ajax_error_handler(req, ex)
    86                 raise
    86                 raise
       
    87             except cubicweb.web.NotFound as ex:
       
    88                 raise httpexceptions.HTTPNotFound(ex.message)
    87 
    89 
    88             if content is not None:
    90             if content is not None:
    89                 request.response.body = content
    91                 request.response.body = content
    90 
    92 
    91             # XXX CubicWebPyramidRequest.headers_out should
    93             # XXX CubicWebPyramidRequest.headers_out should