Browse Source

fixed the missing file error.

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>
Nicholas Tan Jerome 6 years ago
parent
commit
17ee9d4bba
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core.py

+ 2 - 2
core.py

@@ -245,8 +245,8 @@ class StatusHandler(tornado.web.RequestHandler):
                 print(exc)
 
         if not os.path.isfile("./bora/cache.yaml"): 
-            self.write("BORA is loading data, please refresh the page again in a moment.")
-            return
+            print "BORA is loading data, please refresh the page again in a moment."
+            open("cache.yaml","w")
 
         with open("./bora/cache.yaml", 'r') as vstream:
             try: