# HG changeset patch # User Christophe de Vienne # Date 1408650204 -7200 # Node ID 60a504740951f9754fbfe5391cfc555999d11c4b # Parent a8aaff87c1fc5e5a146ace4f51d9350c2a79beda Convert cubicweb.NotFound to HTTPNotFound Related to #4291173 diff -r a8aaff87c1fc -r 60a504740951 pyramid_cubicweb/bwcompat.py --- a/pyramid_cubicweb/bwcompat.py Wed Aug 06 19:06:32 2014 +0200 +++ b/pyramid_cubicweb/bwcompat.py Thu Aug 21 21:43:24 2014 +0200 @@ -84,6 +84,8 @@ # for this exception) should be enough # content = self.appli.ajax_error_handler(req, ex) raise + except cubicweb.web.NotFound as ex: + raise httpexceptions.HTTPNotFound(ex.message) if content is not None: request.response.body = content