diff options
Diffstat (limited to 'ipsilon/util')
-rwxr-xr-x | ipsilon/util/errors.py | 7 | ||||
-rwxr-xr-x | ipsilon/util/page.py | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ipsilon/util/errors.py b/ipsilon/util/errors.py index 3d7ea28..2f3cc3d 100755 --- a/ipsilon/util/errors.py +++ b/ipsilon/util/errors.py @@ -54,3 +54,10 @@ class Error_401(Errors): def handler(self, status, message, traceback, version): return self._error_template('unauthorized.html', title='Unauthorized', message=message) + + +class Error_404(Errors): + + def handler(self, status, message, traceback, version): + return self._error_template('notfound.html', + title='Not Found', message=message) diff --git a/ipsilon/util/page.py b/ipsilon/util/page.py index 1548d47..a99d2f4 100755 --- a/ipsilon/util/page.py +++ b/ipsilon/util/page.py @@ -108,7 +108,7 @@ class Page(Log): return t.render(**m) def default(self, *args, **kwargs): - raise cherrypy.HTTPError(404) + raise cherrypy.NotFound() def add_subtree(self, name, page): self.__dict__[name] = page |