From 19c48b10197e592d02600d6ce22e104d637ba38b Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 29 Dec 2012 15:36:30 +0100 Subject: Removed HTML headers and footers for 404 page. --- source/pyAggr3g470r.py | 10 ++-------- 1 file 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 += "

Error %s - This page does not exist." % status - html += "\n
\n" + htmlfooter + html = "

Error %s - This page does not exist." % status return html def handle_error(): """ Handle different type of errors. """ - html = htmlheader() - html += htmlnav - html += "

Sorry, an error occured" - html += "\n
\n" + htmlfooter + html = "

Sorry, an error occured" cherrypy.response.status = 500 cherrypy.response.body = [html] -- cgit