Kaynağa Gözat

fixed the missing file error.

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>
Nicholas Tan Jerome 6 yıl önce
ebeveyn
işleme
17ee9d4bba
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      core.py

+ 2 - 2
core.py

@@ -245,8 +245,8 @@ class StatusHandler(tornado.web.RequestHandler):
                 print(exc)
                 print(exc)
 
 
         if not os.path.isfile("./bora/cache.yaml"): 
         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:
         with open("./bora/cache.yaml", 'r') as vstream:
             try:
             try: