Fixed some style errors
[invirt/packages/invirt-web.git] / code / main.py
index b05906e..9f57f84 100755 (executable)
@@ -51,14 +51,12 @@ class InvirtUnauthWeb(View):
     @cherrypy.expose
     @cherrypy.tools.mako(filename="/unauth.mako")
     def index(self):
     @cherrypy.expose
     @cherrypy.tools.mako(filename="/unauth.mako")
     def index(self):
-        if(os.path.exists("/etc/invirt/message")):
+        d = dict(simple=True)
+        if os.path.exists("/etc/invirt/message"):
             f = open('/etc/invirt/message')
             f = open('/etc/invirt/message')
-            message = f.read()
-        else:message = None
-        d = dict(simple = True, serviceMessage = message)
+            d['serviceMessage']= f.read()
         return d
 
         return d
 
-
 class InvirtWeb(View):
     def __init__(self):
         super(self.__class__,self).__init__()
 class InvirtWeb(View):
     def __init__(self):
         super(self.__class__,self).__init__()