diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-12-29 15:36:30 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-12-29 15:36:30 +0100 |
commit | 19c48b10197e592d02600d6ce22e104d637ba38b (patch) | |
tree | 8d9cb614f84fc3f74c5faab7977bb9d16cefed8d | |
parent | Template for the /history page. (diff) | |
download | newspipe-19c48b10197e592d02600d6ce22e104d637ba38b.tar.gz newspipe-19c48b10197e592d02600d6ce22e104d637ba38b.tar.bz2 newspipe-19c48b10197e592d02600d6ce22e104d637ba38b.zip |
Removed HTML headers and footers for 404 page.
-rwxr-xr-x | source/pyAggr3g470r.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index 73fc26a3..6d8d801a 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -62,20 +62,14 @@ def error_404(status, message, traceback, version): """ Display an error if the page does not exist. """ - html = htmlheader() - html += htmlnav - html += "<br /><br />Error %s - This page does not exist." % status - html += "\n<hr />\n" + htmlfooter + html = "<br /><br />Error %s - This page does not exist." % status return html def handle_error(): """ Handle different type of errors. """ - html = htmlheader() - html += htmlnav - html += "<br /><br />Sorry, an error occured" - html += "\n<hr />\n" + htmlfooter + html = "<br /><br />Sorry, an error occured" cherrypy.response.status = 500 cherrypy.response.body = [html] |