Mercurial > libervia-web
changeset 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 | 0cbf86b1dcca |
files | libervia/server/pages.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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: