pyramid_cubicweb/bwcompat.py
changeset 11499 60a504740951
parent 11496 500615e26063
child 11505 eca6387f5b87
--- 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