Mercurial > libervia-web
diff libervia/server/pages.py @ 1319:6e2821e78489
pages: render HTTP_NOT_FOUND page on `item-not-found` bridge error.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 01 Aug 2020 16:47:24 +0200 |
parents | 38875bc292ff |
children | a0954b6610aa |
line wrap: on
line diff
--- a/libervia/server/pages.py Sat Aug 01 16:47:24 2020 +0200 +++ b/libervia/server/pages.py Sat Aug 01 16:47:24 2020 +0200 @@ -1781,6 +1781,8 @@ if e.condition == 'not-allowed': log.warning("not allowed exception catched") self.pageError(request, C.HTTP_FORBIDDEN) + elif e.condition == 'item-not-found': + self.pageError(request, C.HTTP_NOT_FOUND) elif e.condition == 'remote-server-not-found': self.pageError(request, C.HTTP_NOT_FOUND) else: