diff --git a/public/html/web.py b/public/html/web.py index 798c296667..5b28424905 100755 --- a/public/html/web.py +++ b/public/html/web.py @@ -20,6 +20,20 @@ sys.path.append('../app') import conf +session_stopped = """ + + + Session Stopped + + +
+ Upgrading... +

We will be back in a few moments.

+
+ +""" + def init(): import webnotes.handler webnotes.handler.get_cgi_fields() @@ -27,7 +41,12 @@ def init(): def respond(): import webnotes import webnotes.webutils - return webnotes.webutils.render(webnotes.form_dict.get('page')) + try: + return webnotes.webutils.render(webnotes.form_dict.get('page')) + except webnotes.SessionStopped: + print "Content-type: text/html" + print + print session_stopped if __name__=="__main__": init()